[% 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("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."); %]