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:
@@ -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},
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user