Link to home
Start Free TrialLog in
Avatar of ToString1
ToString1

asked on

need linq code snippet to change password


I need a linq to sql code snippet that changes a user password.  I am not using membership provider

The arguments are

ChangePassword(User.Identity.Name, currentPassword, newPassword))


So check for valid user and password so if it is correct change to new password
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Hi ToString1;

It would help to give the Database name, table names and columns names that are to be used and if ChangePassword is a call to a Stored Procedure or a function in your program.

Fernando

Avatar of ToString1
ToString1

ASKER

Ok

Table called USER

UserId.  Int
Username.  Varchar(100)
Password.  Nvarchar(255)
Email. Nvarchar(255)

ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial