public bool Login(string login, string password) { // validate password var hashToCheck = CommonHelperAppService.HashPassword(password); return(CommonHelperAppService.ValidatePassword(password, hashToCheck)); }
public bool VerifyPassword(string enteredPassword, string retrievedPassword) { var isValid = CommonHelperAppService.ValidatePassword(enteredPassword, retrievedPassword); if (!isValid) { return(false); } return(true); }