CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Encrypted login

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.