Ignore:
Timestamp:
01/21/11 16:26:07 (11 years ago)
Author:
jwolfing
Message:

#1196 added setpassword to the model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UserManagement/HeuristicLab.Services.Authentication/AuthenticationService.cs

    r5257 r5350  
    145145
    146146
    147     // TODO !!!
     147
    148148    public User ResetPassword(string applicationName, string userName, string password) {
    149149
    150150      string salt = "";
    151       string answer = "";
    152 
    153       using (UserManagementDataContext db = new UserManagementDataContext()) {
    154         db.aspnet_Membership_ResetPassword(applicationName, userName, password, null, null, salt, null, null, answer);
     151      int format = 1; //Password format (0=Plaintext, 1=Hashed, 2=Encrypted)
     152
     153      using (UserManagementDataContext db = new UserManagementDataContext()) {
     154        db.aspnet_Membership_SetPassword(applicationName, userName, password, salt, DateTime.UtcNow, format);
    155155        return null;
    156156      }
Note: See TracChangeset for help on using the changeset viewer.