diff --git a/Teknik/Areas/User/Controllers/UserController.cs b/Teknik/Areas/User/Controllers/UserController.cs index 62a38c8..135d589 100644 --- a/Teknik/Areas/User/Controllers/UserController.cs +++ b/Teknik/Areas/User/Controllers/UserController.cs @@ -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; }