Browse Source

Added check to user profile editing to see if password resets are disabled.

pull/111/head
Teknikode 6 years ago
parent
commit
b1923bfaa9
  1. 5
      Teknik/Areas/User/Controllers/UserController.cs

5
Teknik/Areas/User/Controllers/UserController.cs

@ -387,6 +387,11 @@ namespace Teknik.Areas.Users.Controllers @@ -387,6 +387,11 @@ namespace Teknik.Areas.Users.Controllers
{
return Json(new { error = "New Password Must Match." });
}
// The New Password Match?
if (!Config.UserConfig.PasswordResetEnabled)
{
return Json(new { error = "Password resets are disabled." });
}
changePass = true;
}

Loading…
Cancel
Save