Login with short unencrypted password from Users Table

Tips submitted by ASPMaker users

Login with short unencrypted password from Users Table

Postby Consita » Sat May 11, 2013 6:56 pm

When you login with a User-ID and Password which is shorter than the password field in your database users table, you need to enter spaces to fill up the rest of the login password input field. If for example, the length of the password field in the dabase table is 10 and your password is "ASPMAKER" - length 7, then you need to enter 3 spaces after the password.
To avoid this, modify aspn.asp in your template zip file - adding the Trim function:

ValidateUser = (CustomValidateUser Or ew_ComparePassword(RsUser("<!--##=ew_Quote(PROJ.SecPasswdFld)##-->"), Trim(pwd)))

and / or:
ew_ComparePassword = (Trim(pwd) = Trim(input))

Depending on your password parameters, you may need to change other locations as well.
Consita
 
Posts: 3
Joined: Sat May 11, 2013 2:56 pm

Return to User Submitted Tips (ASPMaker)



cron