[% USE Api2; SET CPANEL.CPVAR.dprefix = "../"; SET password_max_age = (CPANEL.CPCONF.item('SecurityPolicy::PasswordAge::maxage') == "disable") ? 0 : CPANEL.CPCONF.item('SecurityPolicy::PasswordAge::maxage'); SET password_strength_get_required_strength = Api2.exec("PasswdStrength", "get_required_strength", {"app"=>"passwd"} ).0; SET web_disk_has_digest = Api2.exec("WebDisk", "hasdigest", {} ).0; SET mysqlfe_has_mycnf_for_cpuser = Api2.exec("MysqlFE", "has_mycnf_for_cpuser", {} ); %] [% js_code = PROCESS js_block %] [% WRAPPER '_assets/master.html.tt' app_key = 'change_password' feature = 'password' page_js = js_code use_master_bootstrap = 0 page_stylesheets = [] -%] [% SET external_auth_modules = execute("ExternalAuthentication","configured_modules").data; SET configured_providers = execute("ExternalAuthentication","get_authn_links").data; %] [% INCLUDE _assets/_ajaxapp_header.html.tt %] [% IF external_auth_modules.size && external_auth_modules %]

[% locale.maketext('Change Password') %]

[% PROCESS change_password_form %]

[% locale.maketext('External Authentication') %]

[% PROCESS manage_external_auth.html.tt %]
[% ELSE %]

[% locale.maketext('Change Password') %]

[% PROCESS change_password_form %]
[% END %] [% INCLUDE _assets/_ajaxapp_footer.html.tt %] [% PROCESS '_assets/cjt2_header_include.tt' %] [% END #wrapper %] [% BLOCK change_password_form %]
[% IF (FORM.item('msg') == "age") %]

[% locale.maketext("You have not changed your password in [quant,_1,day,days]. The current security policy requires that you change your password every [quant,_2,day,days] to avoid your account being compromised.", FORM.item('days_since_change'), password_max_age.html()) %]

[% END %] [% IF (FORM.item('msg') == "strength") %]

[% locale.maketext("Your password does not meet the strength requirements, you must change it now to avoid having your account compromised.") %]

[% END %] [% IF (FORM.item('msg') == "forced") %]

[% locale.maketext("An administrator has requested you change your password.") %]

[% END %]

[% locale.maketext("Change your account password below. Password strength is important in web hosting; we strongly recommend using the Password Generator to create your password. Follow the tips below to keep your password safe.") %]

[% locale.maketext("[output,strong,Note:] If you change your password, you will end your current session."); %]

[% IF FORM.item('msg') %] [% END %] [% IF (FORM.item('days_since_change')) %] [% END %]
[% INCLUDE _assets/why_strong_passwords.html.tt %]
[% IF !(CPANEL.CPVAR.item('has_mycnf_for_cpuser')) %] [% ELSE %]
[% END %]

[% locale.maketext("Protect your password:") %]

[% locale.maketext("Don’t write down your password, memorize it. In particular, don’t write it down and leave it anywhere, and don’t place it in an unencrypted file! Use unrelated passwords for systems controlled by different organizations. Don’t give or share your password, in particular to someone claiming to be from computer support or a vendor unless you are sure they are who they say they are. Don’t let anyone watch you enter your password. Don’t enter your password on a computer you don’t trust. Use the password for a limited time and change it periodically.") %]

[% locale.maketext("Choose a hard-to-guess password:") %]

[% END # %] [% BLOCK js_block %] [% END #js_block %]