Hide "reset password" on the login screen if system emails can't be sent.

This commit is contained in:
Kenn Jacobsen
2018-10-16 13:25:44 +02:00
committed by Sebastiaan Janssen
parent d16bc7a465
commit 44fbff4410
2 changed files with 3 additions and 2 deletions

View File

@@ -207,7 +207,7 @@
}
}
$scope.allowPasswordReset = Umbraco.Sys.ServerVariables.umbracoSettings.allowPasswordReset;
$scope.allowPasswordReset = Umbraco.Sys.ServerVariables.umbracoSettings.canSendRequiredEmail && Umbraco.Sys.ServerVariables.umbracoSettings.allowPasswordReset;
$scope.showLogin = function () {
$scope.errorMsg = "";