Esempio n. 1
0
 public bool Authenticate(LoginEntity le)
 {
     if (le.Password.Length < 2)
     {
         throw new Exception("Password length is less");
     }
     else
     {
         return(dal.Authenticate(le));
     }
 }
Esempio n. 2
0
 public bool Authenticate(LoginEntity le)
 {
     if (le.password.Length < 2)
     {
         throw new Exception("Password Format incorrect");
     }
     else
     {
         return(dal.Authenticate(le));
     }
 }
Esempio n. 3
0
 public string Authenticate(string username, string password)
 {
     if (string.IsNullOrWhiteSpace(username) || string.IsNullOrWhiteSpace(username))
     {
         throw new Exception("UserName cannot be blank or empty");
     }
     if (string.IsNullOrWhiteSpace(password) || string.IsNullOrWhiteSpace(password))
     {
         throw new Exception("Password cannot be blank or empty");
     }
     else
     {
         password = EncodePasswordToBase64(password);
     }
     return(dal.Authenticate(username, password));
 }
Esempio n. 4
0
 public TblEmployees Authenticate(string UserName, string Password)
 {
     return(LoginDAL.Authenticate(UserName, Password));
 }