Company: Link Technologies
Case No: L12456
Logged By: Sanjay (Link Technologies) on 11 Oct 2012 07:08PM
Priority: Not Applicable
Product: Other
Group: To be assigned
Time Taken: 0.00
Assigned To: Sanjay (Link Technologies)
Circulation: Sanjay
Resolve By: Thursday, 11 October 2012 07:08 PM [4213 days since logged date]
Status: Closed
Subject: How to reset ASP.NET Security passwords in Development Environments
Summary:    

ASP .NET stores its passwords in SQL tables in encrypted format. Sometimes we need to reset this password for QA and testing purposes. To do this, we need to change the Password FORMAT and Password SALT which are used to encrypt the password. The script below will reset the password for username sanjay to the value password.

update aspnet_Membership
set Password = 'password', PasswordFormat = 0, PasswordSalt = ''
from aspnet_Membership m inner join aspnet_Users u on m.ApplicationId = u.ApplicationId
and m.UserId = u.UserId
and u.UserName = 'admin'

Audit Notes:
If you have any queries regarding this support incident, please email admin@linktechnologies.com.au and include the Case No: L12456 in the subject line of all emails regarding this issue.

Document size: 0.8 KB
For call complaints, please contact the Managing Director of the company using this form