public static void ChangePassword(USER user)
 {
     user.PASSWORDHASH = MD5_Encoding.Encode(user.PASSWORDHASH);
     services.UpdateUser(user);
 }
Пример #2
0
 public static bool VerifyHash(String input, String initHash)
 {
     return(MD5_Encoding.Encode(input) == initHash);
 }
 //insert new Users into the system
 public static USER AddUser(USER user)
 {
     user.PASSWORDHASH = MD5_Encoding.Encode(user.PASSWORDHASH);
     return(services.AddUser(user));
 }