Browse Source

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

tags/3.0.0
Teknikode 3 years ago
parent
commit
b1923bfaa9
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      Teknik/Areas/User/Controllers/UserController.cs

+ 5
- 0
Teknik/Areas/User/Controllers/UserController.cs View File

@@ -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