diff --git a/lam/lib/html.inc b/lam/lib/html.inc
index 247ae840..98642f10 100644
--- a/lam/lib/html.inc
+++ b/lam/lib/html.inc
@@ -448,6 +448,8 @@ class htmlInputField extends htmlElement {
protected $isPassword = false;
/** check password strength */
protected $checkPasswordStrength = false;
+ /** disables browser autofilling of password fields */
+ protected $disableAutoFill = false;
/** enabled or disabled */
protected $isEnabled = true;
/** indicates that the value should be saved in obfuscated form */
@@ -591,11 +593,16 @@ class htmlInputField extends htmlElement {
if (!empty($this->title)) {
$title = ' title="' . $this->title . '"';
}
+ $autoCompleteVal = '';
+ if ($this->disableAutoFill) {
+ $autoCompleteVal = ' autocomplete="new-password"';
+ }
if ($this->showDnSelection) {
echo '';
}
echo '';
+ . $min . $max . $size . $fieldTabIndex . $onKeyPress . $onKeyUp . $title . $disabled
+ . $autoCompleteVal . '>';
if ($this->showDnSelection) {
echo '
isPassword = $isPassword;
$this->checkPasswordStrength = $checkStrength;
+ $this->disableAutoFill = $disableAutoFill;
}
/**
diff --git a/lam/templates/config/confmain.php b/lam/templates/config/confmain.php
index 7f8abe91..3599fefe 100644
--- a/lam/templates/config/confmain.php
+++ b/lam/templates/config/confmain.php
@@ -177,8 +177,8 @@ printConfigurationPageTabs(ConfigurationPageTab::GENERAL);
?>
-
-
+
+
add(new htmlSubTitle(_("Profile password"), '../../graphics/keyBig.png', null, true), 12);
$password1 = new htmlResponsiveInputField(_("New password"), 'passwd1', null, '212');
-$password1->setIsPassword(true);
+$password1->setIsPassword(true, false, true);
$password2 = new htmlResponsiveInputField(_("Reenter password"), 'passwd2');
-$password2->setIsPassword(true);
+$password2->setIsPassword(true, false, true);
$password2->setSameValueFieldID('passwd1');
$row->add($password1, 12);
$row->add($password2, 12);
diff --git a/lam/templates/config/mainmanage.php b/lam/templates/config/mainmanage.php
index 547d1ded..9ebab21c 100644
--- a/lam/templates/config/mainmanage.php
+++ b/lam/templates/config/mainmanage.php
@@ -479,10 +479,10 @@ $row->addVerticalSpacer('3rem');
// change master password
$row->add(new htmlSubTitle(_("Change master password")), 12);
$pwd1 = new htmlResponsiveInputField(_("New master password"), 'masterpassword', '', '235');
-$pwd1->setIsPassword(true);
+$pwd1->setIsPassword(true, false, true);
$row->add($pwd1, 12);
$pwd2 = new htmlResponsiveInputField(_("Reenter password"), 'masterpassword2', '');
-$pwd2->setIsPassword(true);
+$pwd2->setIsPassword(true, false, true);
$pwd2->setSameValueFieldID('masterpassword');
$row->add($pwd2, 12);
$row->addVerticalSpacer('3rem');
diff --git a/lam/templates/config/moduleSettings.php b/lam/templates/config/moduleSettings.php
index 92f636a3..fadcaa50 100644
--- a/lam/templates/config/moduleSettings.php
+++ b/lam/templates/config/moduleSettings.php
@@ -9,7 +9,7 @@ use \htmlSubTitle;
/*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
- Copyright (C) 2009 - 2018 Roland Gruber
+ Copyright (C) 2009 - 2019 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -121,8 +121,8 @@ printConfigurationPageTabs(ConfigurationPageTab::MODULE_SETTINGS);
?>
-
-
+
+