Update password field in db, set null for uninitialized
This commit is contained in:
@@ -43,11 +43,17 @@ namespace MileageTraker.Web.Controllers
|
||||
catch (UserLockedOutException)
|
||||
{
|
||||
ModelState.AddModelError("",
|
||||
"Too many failed password attempts for " +
|
||||
model.Username + ". Account is locked. " +
|
||||
@"Use 'Forgot Password' or contact " +
|
||||
"administrator to unlock."
|
||||
);
|
||||
"Too many failed password attempts for " +
|
||||
model.Username + ". Account is locked. " +
|
||||
@"Use 'Forgot Password' or contact " +
|
||||
"administrator to unlock.");
|
||||
}
|
||||
catch (UninitializedAccountException)
|
||||
{
|
||||
ModelState.AddModelError("",
|
||||
"Account for " +
|
||||
model.Username + " has not been initialized. " +
|
||||
@"Please check your email for initialization instructions.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user