Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    4

    Default cpanel pw strength outside of cpanel?

    I have a script which allows users to change their email passwords. Is there a way to include the cpanel password strength bar in that page? I played around for a bit to include some of the JS but it was a no-go.

    Right now a lot of users submit the form but the pw doesnt get changed because it isnt strong enough (but the site isnt telling them how strong it is...)

    Any way to get this done?

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,893
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    You might do better digging up some open source code from google.
    ajax password strength form - Google Search
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  3. #3
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    passwdstrength::get_required_strength( hash )
    API Version: 2
    Description: Get the minimum strength required set by WHM
    Parameters
    app => string
    this is the name of the application that the minimum strength is being checked for.

    Return:
    $VAR1 = {
    'strength' => int indicating lowest strength
    };

  4. #4
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    PasswdStrength::get_required_strength( hash )
    API Version: 2
    Description: Get the minimum strength required set by WHM
    Parameters
    app => string
    this is the name of the application that the minimum strength is being checked for.

    Return:
    Code:
    $VAR1 = {
              'strength' => int indicating lowest strength
            };
    alternatively via the xml-api:

    /xml-api/cpanel?user=cptest&cpanel_xmlapi_module=PasswdStrength&cpanel_xmlapi_func=get_required_strength&app=ftp

    Code:
    <cpanelresult>
      <apiversion>2</apiversion>
      <data>
        <strength>10</strength>
      </data>
      <event>
        <result>1</result>
      </event>
      <func>get_required_strength</func>
      <module>PasswdStrength</module>
    </cpanelresult>
    Last edited by cPanelMatt; 09-16-2009 at 11:50 PM.

Similar Threads & Tags
Similar threads

  1. cPanel Password Strength Meter
    By lvt in forum cPanel Developers
    Replies: 5
    Last Post: 03-11-2012, 06:08 PM
  2. cpanel password strength checker, is this scoring too high?
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-13-2010, 10:49 AM
  3. Password length/strength for a cpanel account
    By notuo in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-15-2010, 01:42 PM
  4. Password Strength
    By gmm6797 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-20-2009, 10:35 AM
  5. Password Strength
    By cwihost in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 10-27-2007, 03:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube