T O P I C R E V I E W |
Webbo |
Posted - 06 October 2013 : 09:00:53 With more and more people using mobiles and some browsers breaking up the activation link resulting in more and more people not activating their accounts via email validation, an idea would be to have a random generated code, say six numbers or letters long that prospective members would be sent via email and once they accessed the email would have to return to the site and put the code into a form field to activate their membership
How easy would this be to mod?
|
15 L A T E S T R E P L I E S (Newest First) |
Webbo |
Posted - 02 December 2013 : 14:16:44 Carefree, the following piece of code doesn't work:
'" & strEncodedPassword & "' AND M_NEWKEY=
It does not recognise the password being submitted,
The following however does work:
'" & SHA256(Request.Form("Password")) & "' AND M_NEWKEY=
|
Webbo |
Posted - 02 December 2013 : 13:51:33 Doh, can I have the red after you Carefree
I must have looked at that line of code so many times also, it even shows the correct format further on in the same line
I'm pleased to report validate.asp now works |
Carefree |
Posted - 02 December 2013 : 12:21:33 Yes, thanks. Blinded by looking at it too many times, I guess. That's what happens when you write code and cannot test it.
Edit...
That's odd. I have it correctly on my copy. Must have edited it incorrectly here. Fixed on above posts. |
cripto9t |
Posted - 02 December 2013 : 11:56:14
WHERE lCase(M_NAME)='" & trim(lCase(Request.Form("UserName"))) AND "' & M_PASSWORD
should be
WHERE lCase(M_NAME)='" & trim(lCase(Request.Form("UserName"))) & "' AND M_PASSWORD |
Webbo |
Posted - 02 December 2013 : 02:31:54 Tried that and even tried re-typing the lines out with a few line breaks...
Still the same mismatch error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "SELECT M_NAME, M_PAS"]'
/forum/validate.asp, line 41
I'm offline now for the next 12 hours
|
Carefree |
Posted - 02 December 2013 : 01:56:45 There is no mismatch. Something is corrupt. Try typing the line in manually. |
Webbo |
Posted - 01 December 2013 : 16:54:56 That's what I've got and I just loaded the above line to make sure and still get the error message:
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "SELECT M_NAME, M_PAS"]'
/forum/validate.asp, line 41
I've played with it for a while and can't seem to work out where the mismatch is |
Carefree |
Posted - 01 December 2013 : 16:18:09 Looks like you copied it wrong, may want to recopy the file. That line should be:
|
Webbo |
Posted - 01 December 2013 : 11:30:07 Okay, it's now writing to the database but when you enter the username, password and key into validate.asp and submit it it throws up the following error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "SELECT M_NAME, M_PAS"]'
/forum/validate.asp, line 41
|
Webbo |
Posted - 01 December 2013 : 08:41:21 Lol, which shade of red would you prefer
I'm out and about at the moment but will do it when I get back in and report back |
Carefree |
Posted - 01 December 2013 : 06:54:02 Duhhh. Color me red. Change M_USERNAME to M_NAME.
Fixed in original instructions. Also changed "validate.asp" in original. |
Webbo |
Posted - 01 December 2013 : 03:54:11 It shows:
UPDATE FORUM_MEMBERS_PENDING SET M_NEWKEY = '8IXY4B8S3G' WHERE M_USERNAME='validate'
('validate' is the username I used to register )
The username is entered into the MEMBERS_PENDING table along with any registration info but the Newkey value isn't |
Carefree |
Posted - 30 November 2013 : 22:52:45 That's correct. Make the following change and let me know what it reports.
|
Webbo |
Posted - 30 November 2013 : 15:56:35 The verfication code is being generated and added into the activation email but isn't being written into the database
The code is see doing that is...
|
Webbo |
Posted - 30 November 2013 : 15:04:36 It's set to:
Name: M_NEWKEY Type: VARCHAR Length: 10 NULL
? |