We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18878
    • 210 Posts
    Hi,

    I’m implementing a website for a client that would like all passwords to have a minimum of 8 characters instead of the default 6. It needs to be done for all manager users and web users aswell. Please, can anyone give a hint where in the source code can I change this "6 chars minimum" setting? I found something in document.parser.class.inc.php at line 2102, function changeWebUserPassword, but when I change this:

    if (strlen($newPwd) < 6) {
    return "Password is too short!";
    }

    to this:
    if (strlen($newPwd) < cool {
    return "Password is too short!";
    }

    ...it has no effect. Anyway I guess that would work only when changing the actual password, but what I need is to restrict a minimum of 8 chars also when new manager or web users are created.

    Your help will be appreciated.

    Thanks!

    Mc
      • 28042 ā˜† A M B ā˜†
      • 24,524 Posts
      For manager users, line 127 of manager/processors/save_user.processor.php

      For web users, line 106 of manager/processors/save_web_user.processor.php

      It should be noted here that the error messages are hard-coded in English (as of 1.0 ver.5439 from svn).
      webAlert("Password is too short!");
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 18878
        • 210 Posts
        Susan,

        Thanks a lot for the info.

        Based on your help, I found all this places:
        save_password.processor.php line 19
        save_web_user.processor.php line 106 and line 226
        save_user.processor.php line 128 and line 250

        Thank you! smiley

        Mc
          • 22303 MODX Staff
          • 10,725 Posts
          Would be good to see a JIRA ticket requesting that these be configurable in the system settings. wink
            • 18878
            • 210 Posts
            Quote from: OpenGeek at Jul 20, 2009, 07:13 PM

            Would be good to see a JIRA ticket requesting that these be configurable in the system settings. wink

            Sure I can do it. I went to this page:

            http://svn.modxcms.com/jira/browse/MODX

            and clicked on the "Create a new issue in project MODx CMF" link. Should I submit the ticket there under "New feature" ? Or is is better if I place it under Evolution or Revolution?

            :)
              • 22303 MODX Staff
              • 10,725 Posts
              Quote from: mcclausky at Jul 20, 2009, 10:22 PM

              and clicked on the "Create a new issue in project MODx CMF" link. Should I submit the ticket there under "New feature" ? Or is is better if I place it under Evolution or Revolution?
              Yes, create it there under New Feature and select both 1.0 (Evolution) and 2.0 (Revolution). wink
                • 29419
                • 15 Posts
                Hey All... Does anyone know how to do this in the latest version of Revo? It seems those files are not there.
                  Office: +1-818-306-3660
                  Email: [email protected]
                  Web: www.techdharma.com
                  Skype: techdharma
                  • 22303 MODX Staff
                  • 10,725 Posts
                  This is configurable via a System Setting in Revo...

                  password_min_length with a default of 8
                    • 29059
                    • 88 Posts
                    Quote from: opengeek at Aug 22, 2013, 05:41 PM
                    This is configurable via a System Setting in Revo...

                    password_min_length with a default of 8

                    it isn't working for me. please see... https://forums.modx.com/thread/100064/forgot-password-length-too-small#dis-post-541123