csthilaire
Posts: 3
|
Posted: 02/28/2009, 6:40 PM |
|
On ASP.NET VB, when using SecurityUtility.MD5({password}) in the settings and modifying the user registration form to encrypt passwords, how do I modify the login form to check for encrypted password?
Other question:
How do I convert the non-encrypted passwords already contained in my MS SQL table?
Thanks
|
|
|
melvyn
Posts: 333
|
Posted: 03/22/2009, 7:01 PM |
|
Well, maybe this is late.
Check MembershipProvider.vb, this line (line 70):
Sql = "SELECT " + userIdField + " FROM " + tableName + " WHERE " + userLoginField + "=" + dao.ToSql(username, FieldType._Text) + " AND " + userPasswordField + "=" + dao.ToSql(password, FieldType._Text)
you need touch here: dao.ToSql(SecurityUtility.MD5(password), FieldType._Text)
Remember this is gray area. It will not generate after you modify it.
MembershipProvider.vb is located under Common Files > AppCode > Components
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com |
|
|
|