9097 add contextual password helper (#9256)

* update back-office forms

* Display tip on reset password page as well

* add directive for password tip

* integrate directove in login screen

* forgot the ng-keyup :-)

* adapt tooltip directive to potential different Members and Users password settings

* remove watcher

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
This commit is contained in:
Michael Latouche
2021-03-22 23:07:50 +01:00
committed by GitHub
parent 3d05bd6917
commit 88611f30b5
10 changed files with 104 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ namespace Umbraco.Web.Editors
var keepOnlyKeys = new Dictionary<string, string[]>
{
{"umbracoUrls", new[] {"authenticationApiBaseUrl", "serverVarsJs", "externalLoginsUrl", "currentUserApiBaseUrl", "iconApiBaseUrl"}},
{"umbracoSettings", new[] {"allowPasswordReset", "imageFileTypes", "maxFileSize", "loginBackgroundImage", "loginLogoImage", "canSendRequiredEmail", "usernameIsEmail"}},
{"umbracoSettings", new[] {"allowPasswordReset", "imageFileTypes", "maxFileSize", "loginBackgroundImage", "loginLogoImage", "canSendRequiredEmail", "usernameIsEmail", "minimumPasswordLength", "minimumPasswordNonAlphaNum"}},
{"application", new[] {"applicationPath", "cacheBuster"}},
{"isDebuggingEnabled", new string[] { }},
{"features", new [] {"disabledFeatures"}}
@@ -100,6 +100,8 @@ namespace Umbraco.Web.Editors
/// <returns></returns>
internal Dictionary<string, object> GetServerVariables()
{
var userMembershipProvider = Core.Security.MembershipProviderExtensions.GetUsersMembershipProvider();
var defaultVals = new Dictionary<string, object>
{
{
@@ -357,6 +359,8 @@ namespace Umbraco.Web.Editors
{"showUserInvite", EmailSender.CanSendRequiredEmail},
{"canSendRequiredEmail", EmailSender.CanSendRequiredEmail},
{"showAllowSegmentationForDocumentTypes", false},
{"minimumPasswordLength", userMembershipProvider.MinRequiredPasswordLength},
{"minimumPasswordNonAlphaNum", userMembershipProvider.MinRequiredNonAlphanumericCharacters},
}
},
{