Example #1
0
 public bool CheckPassword(string userPassword)
 {
     try
     {
         return(_password == Encrypting.GetMd5HashForString(userPassword));
     }
     catch (Exception)
     {
         return(false);
     }
 }
Example #2
0
 public bool CheckPassword(string password)
 {
     try
     {
         string res2 = Encrypting.GetMd5HashForString(password);
         return(Password == res2);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Example #3
0
 private void SetPassword(string password)
 {
     Password = Encrypting.GetMd5HashForString(password);
 }