public bool ValidateUserLogin(string userName, string password, ref TANK_usp_sel_Security_spResults userDetails) { userDetails = _sharedFunctions.GetUserDetails(userName); var salt = userDetails.PasswordSalt; var hash = GeneratePasswordHash(password, salt); return(userDetails.PasswordHash == hash); }
private IEnumerable <string> GetSecurityGroups(TANK_usp_sel_Security_spResults userDetails) { var TANK_usp_Login_spParams = new TANK_usp_Login_spParams() { //todo: re-factor this logic later SecurityID = userDetails.SecurityID.ToString() }; return(_utilityService.ExecStoredProcedureWithResults <string>("TANK_usp_Login", TANK_usp_Login_spParams)); }
public bool Athenticate(string userName, string password, ref TANK_usp_sel_Security_spResults userDetails) { return(_passwordService.ValidateUserLogin(userName, password, ref userDetails)); }