MasinoChangePwd10 extension will customize your Change Password page in web applications that generated by PHPMaker 10. You will see a new panel in this page so that the Change Password form will become eye-catching. The panel width will auto-adjust to the maximum width of the your web application. This extension also has the ability to hide the breadcrumb links that generated by PHPMaker 10. By default, PHPMaker 10 will generate the breadcrumb links on the Change Password page. By using MasinoChangePwd10 extension, then the breadcrumb links will be hidden by default.
This extension will also handle the multi language email template that being used by Change Password business-logic. If your web application is running the multi language feature, then your web application users will receive the email based on the selected language they chose. In addition, the Subject email will include your application name. This is very useful for your users to distinguish the email belongs to which web application. Therefore, they will not get confused if they are using some of your web applications that generated by PHPMaker. As we have already known, PHPMaker has not handled all these things, yet!
From the generated Change Password page, now you can either display or hide the Captcha (security code) by adjusting the related setting in the generated (ewcfg10.php) file. The same way also if you want to display or hide the breadcrumb links, to change the panel type of the Change Password page, and to implement or disable the Password Strength Meter and policy (MasinoRegister10 extension is needed). In other words, each time you want to change the settings and see the result you don’t have to re-generate the script files. All you have to do is by adjusting the related setting from the generated configuration file.
To display or hide the Captcha on the Change Password page, then adjust the following code from your ewcfg10.php file:
define("MS_SHOW_CAPTCHA_ON_CHANGEPWD_PAGE", FALSE, TRUE); // <-- Switch FALSE (second param) to TRUE if you want to display Captcha on the Change Password page
To display or hide the breadcrumb links on the Change Password page, then adjust the following code from your ewcfg10.php file:
define("MS_SHOW_BREADCRUMBLINKS_ON_CHANGEPWD_PAGE", FALSE, TRUE);
To adjust the panel type on the Change Password page, then adjust the following code from your ewcfg10.php file:
define("MS_CHANGEPWD_FORM_PANEL_TYPE", "panel-default", TRUE); // available: panel-default, panel-primary, panel-success, panel-warning, panel-danger, panel-info
To switch the window type from default to popup for the Change Password page, then make sure you have the following code from your ewcfg10.php file become:
define("MS_CHANGEPWD_WINDOW_TYPE", "popup", TRUE); // available: default, popup. Modified by Masino Sinaga, May 22, 2014
To implement or disable the Password Strength policy in the Change Password form, then adjust the following code from your ewcfg10.php file. Please note that you have to first enable MasinoRegister10 extension for this:
define("MS_PASSWORD_MINIMUM_LENGTH", 6, TRUE); // default minimum 6 characters
define("MS_PASSWORD_MAXIMUM_LENGTH", 20, TRUE); // default maximum 20 characters
define("MS_PASSWORD_MUST_COMPLY_WITH_MIN_LENGTH", TRUE, TRUE);
define("MS_PASSWORD_MUST_COMPLY_WITH_MAX_LENGTH", TRUE, TRUE);
define("MS_PASSWORD_MUST_INCLUDE_AT_LEAST_ONE_NUMBER", TRUE, TRUE);
define("MS_PASSWORD_MUST_INCLUDE_AT_LEAST_ONE_LETTER", TRUE, TRUE);
define("MS_PASSWORD_MUST_INCLUDE_AT_LEAST_ONE_CAPS", TRUE, TRUE);
define("MS_PASSWORD_MUST_INCLUDE_AT_LEAST_ONE_SYMBOL", TRUE, TRUE);
define("MS_PASSWORD_MUST_DIFFERENT_OLD_AND_NEW", TRUE, TRUE);
However, in order to adjust the default setting of those Password Strength Meter constants settings above, then you can define them from the Advanced setting of MasinoRegister10 extension, under the Tools -> Extensions -> MasinoRegister10 -> Advanced tab. Especially for Captcha setting on the Change Password page, you can define the default setting of it from the Security -> Advanced -> User Login Options -> Change Password Page of PHPMaker.
Please note that in order to display all the changes in the Change Password page properly, then you have to enable also MasinoCustomCSS10 and MasinoCaptcha10 extensions. The reason for this, since the custom CSS code which will customize the Change Password page --- will be generated using MasionCustomCSS10 extension, and the Captcha code will be generated by using MasinoCaptcha10 extension.
Conclusion:
Updated on October 8, 2013: Combining the CurrentUserID() and CurrentUserName() in Audit Trail of changing password.
Updated on October 10, 2013: Some code customization that related to other extensions.
Updated on November 19, 2013: Fixed: Captcha not showing on the Change Password form if MasinoFixedWidthSite10 extension is enabled.
Updated on May 22, 2014: Added: Popup or Default options to display the Change Password Form as the popup window or as the normal page (as you have been using until now).
Last Updated on May 31, 2014: Fixed: missing the ability of focus on the first textbox when the popup dialog window is being shown.
As the conclusion and recap, here is the advantage of MasinoChangePwd10 extension:
- A new option for displaying the Change Password Form as a popup window. However you may still use the default option for the normal page.
- A new panel for the Change Password page so that the form will become eye-catching. You can even change the panel style from the generated configuration (ewcfg10.php) file.
- The ability to hide or display the breadcrumb links on the Change Password page (default is hidden). Simply adjust the related setting in ewcfg10.php file.
- The ability to display the Captcha security code without having to re-generate the script files. Simply adjust the related setting in ewcfg10.php file.
- The ability to display the Password Strength Meter, both for Password and Confirm Password columns/fields so that your web application users will feel more comfortable.
- The ability to implement Password Strength policy in the Change Password form. Simply adjust the related setting in ewcfg10.php file.
- Supports for the multi-language email template. You can even add another email language template based on the existing email template in this extension.
- The Subject of email has included the web application name to distinguish and make sure the email came from the right web application.
- Combining the CurrentUserID() and CurrentUserName() into Audit Trail of changing password.
Leave a Reply
You must be logged in to post a comment.