Exemplo n.º 1
0
 public void SystemUser_ResetPassword(UserForResetPassword us)
 {
     CreatePasswordHash(us.strPassword, out byte[] passwordHash, out byte[] passwordSalt);
     try
     {
         using (var con = GetDbConnection())
         {
             con.Execute("dbo.Usp_SystemUser_ResetPassword",
                         new
             {
                 @iIntUserId       = us.UserId,
                 @iBinPasswordHash = passwordHash,
                 @iBinPasswordSalt = passwordSalt
             }, commandType: CommandType.StoredProcedure);
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemplo n.º 2
0
 public void SystemUser_ResetPassword(UserForResetPassword us)
 {
     _repo.SystemUser_ResetPassword(us);
 }