web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Password policy valida...
Power Pages
Answered

Password policy validation message is incorrect

(1) ShareShare
ReportReport
Posted on by

I have configured my PowerApps Portal password policy in the following way:

Authentication/UserManager/PasswordValidator/RequiredLength : 8

Authentication/UserManager/PasswordValidator/RequireDigit : true

Authentication/UserManager/PasswordValidator/RequireLowercase : true

Authentication/UserManager/PasswordValidator/RequireNonLetterOrDigit : true

Authentication/UserManager/PasswordValidator/RequireUppercase : true

 

If I attempt to set my password to "a" I get the following error message:

"

  • Passwords must be at least 8 characters. Passwords must have at least one digit ('0'-'9'). Passwords must have at least one uppercase ('A'-'Z'). Passwords must contain characters from at least three of the following four classes: uppercase, lowercase, digit, and non-alphanumeric (special).

"

The error is with the last sentence, it states that only 3 of the 4 classes are required, but in my case all 4 are required.  In my opinion the last sentence is unnecessary and could be removed.

It would also be nice if each password condition was within it's own <li>

 

Thanks

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Hi Oliver

    I considered using javascript to modify the error message, but I tend to find that there is a flash of the original content before the javascript kicks in to change it.  The solution I was hoping for would be to change\remove the problem message before it is shown, but this doesn't seem possible at the moment.

    I just tried your javascript solution and it worked brilliantly, I didn't even see a flash of the original message.

     

    The modified javascript&colon;

     

    <script>
     $(document).ready(function () {
     var validation = $("#ValidationSummary1");
     if(validation){
     // get text
     var validationText = validation.text();
    
    				 validationText = validationText.replace("Passwords must contain characters from at least three of the following four classes: uppercase, lowercase, digit, and non-alphanumeric (special).", "");
     validation.text(validationText);
     }
     });
    </script>

     

     

    Solution Accepted!

    Thanks for your help.

  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    did that work for you @Anonymous ?

    can you mark as a verified answer?

     

    thanks

  • Verified answer
    oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    as suggested by xida-msft, you can add an idea for future improvements in the Portals

    Microsoft is looking closely to the ideas forum, so I guess that's your best chance

     

    the list I shared is from the Community Portal source code, it's a version of the Portals that Microsoft published to the public a while ago, but it's very out of date already, most things are still the same though: https://github.com/Adoxio/xRM-Portals-Community-Edition

    note that this project is not maintained by Microsoft

     

    if that's critical for you requirement, you can try adding a support ticket with Microsoft, not sure what they would come with though

    another thing you can try is adding a JS code into a snippet to replace that text

    create (if there isn't already) a content snippet with the name: "Account/Register/PageCopy"

    set the type to HTML, and add a JS in the value

     

    <script>
     $(document).ready(function () {
     var validation = $("#ValidationSummary1");
     if(validation){
     // get text
     var validationText = validation.text();
     // check if your validation text contains the string you want to replace
     validation.text("your new text");
     }
     });
    </script>

     


    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • Community Power Platform Member Profile Picture
    on at

    Thanks @v-xida-msft I'll do that.

  • Community Power Platform Member Profile Picture
    on at

    Hi Oliver

    Thanks for your reply. 

    What is the source of the image you posted?  It's clear to see that "Passwords_not_meeting_requirements" is a static string, so it will always be the same regardless of how many conditions I configure.  Can that string be set to ""?  I was hoping to raise a bug with Microsoft and ended up here, I'm not sure if I should raise this somewhere else?

     

    Thanks

  • v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    Based on the issue that you mentioned, I think this issue is related to PowerApps Portal Settings. Currently, there is no way to change the prompt message for these Password policy validation in PowerApps Portal.

     

    If you would like this feature to be improved, please consider submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

     

    Best regards,

  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    Hi, as far as I am aware we can't change that message

    strings.PNG

     

    the strings are shown according to the criteria in your site settings

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 51 Super User 2025 Season 2

#2
Jerald Felix Profile Picture

Jerald Felix 27

#3
Lucas001 Profile Picture

Lucas001 25 Super User 2025 Season 2

Last 30 days Overall leaderboard