Admin auth functionally complete
This commit is contained in:
@@ -136,11 +136,11 @@ namespace MileageTraker.Web.DAL
|
||||
}
|
||||
if (!user.IsApproved)
|
||||
{
|
||||
return false;
|
||||
throw new UserAccountDisabledException();
|
||||
}
|
||||
if (user.IsLockedOut)
|
||||
{
|
||||
return false;
|
||||
throw new UserLockedOutException();
|
||||
}
|
||||
var hashedPassword = user.Password;
|
||||
var verificationSucceeded = (hashedPassword != null && Crypto.VerifyHashedPassword(hashedPassword, password));
|
||||
|
||||
Reference in New Issue
Block a user