File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1226,6 +1226,9 @@ public static function displayLoginForm()
1226
1226
'icon ' => 'user fa-fw ' ,
1227
1227
'placeholder ' => get_lang ('UserName ' ),
1228
1228
];
1229
+ if (api_get_configuration_value ('security_login_autocomplete_disable ' ) === true ) {
1230
+ $ params ['autocomplete ' ] = 'new-password ' ;
1231
+ }
1229
1232
$ browserAutoCapitalize = false ;
1230
1233
// Avoid showing the autocapitalize option if the browser doesn't
1231
1234
// support it: this attribute is against the HTML5 standard
@@ -1244,6 +1247,9 @@ public static function displayLoginForm()
1244
1247
'icon ' => 'lock fa-fw ' ,
1245
1248
'placeholder ' => get_lang ('Pass ' ),
1246
1249
];
1250
+ if (api_get_configuration_value ('security_login_autocomplete_disable ' ) === true ) {
1251
+ $ params ['autocomplete ' ] = 'new-password ' ;
1252
+ }
1247
1253
if ($ browserAutoCapitalize ) {
1248
1254
$ params ['autocapitalize ' ] = 'none ' ;
1249
1255
}
Original file line number Diff line number Diff line change 2515
2515
// If this feature is enabled on an existing portal, the registration date of users will be taken as
2516
2516
// the latest password change date.
2517
2517
//$_configuration['security_password_rotate_days'] = 90;
2518
+
2519
+ // Prevent login/pass cache by browser
2520
+ // If enabled, users' browsers will not be able to re-use previous
2521
+ // login/passwords in the main login form. Browsers might choose not to
2522
+ // support this feature.
2523
+ //$_configuration['security_login_autocomplete_disable'] = false;
You can’t perform that action at this time.
0 commit comments