public bool Authenticate(LoginEntity le) { if (le.Password.Length < 2) { throw new Exception("Password length is less"); } else { return(dal.Authenticate(le)); } }
public bool Authenticate(LoginEntity le) { if (le.password.Length < 2) { throw new Exception("Password Format incorrect"); } else { return(dal.Authenticate(le)); } }
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)); }
public TblEmployees Authenticate(string UserName, string Password) { return(LoginDAL.Authenticate(UserName, Password)); }