Example #1
0
 public bool ResetPassword(ResetPassword password, int id)
 {
     if (userDataLayer.PasswordValid(Encryption.Encrypt(password.OldPassword), id))
     {
         userDataLayer.ChangePassword(Encryption.Encrypt(password.NewPassword), id);
         return(true);
     }
     return(false);
 }