From b1923bfaa95a09cc334233d86d07ac8e7c64e84e Mon Sep 17 00:00:00 2001 From: Uncled1023 Date: Sun, 2 Apr 2017 13:52:50 -0700 Subject: [PATCH] Added check to user profile editing to see if password resets are disabled. --- Teknik/Areas/User/Controllers/UserController.cs | 5 +++++ 1 file changed, 5 insertions(+) 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; }