give the browser a hint that we want a new password for new admin accounts - see https://github.com/postfixadmin/postfixadmin/issues/331

pull/315/head
David Goodwin 5 years ago
parent 5b16f4a483
commit 2a1383ee2e

@ -276,7 +276,7 @@ require(dirname(__FILE__) . '/../templates/header.php');
$setuppw = $CONF['setup_password'];
}
if (safepost("form") == "setuppw") {
if (safepost("form") === "setuppw") {
# "setup password" form submitted
if (safepost('setup_password') != safepost('setup_password2')) {
$setupMessage = "The two passwords differ!";
@ -384,12 +384,12 @@ EOF;
</tr>
<tr>
<td><label for="password"><?php print $PALANG['password'] . ":"; ?></label></td>
<td><input id="password" class="flat" type="password" name="password"/></td>
<td><input id="password" class="flat" type="password" name="password" autocomplete="new-password" /></td>
<td><?= _error_field($errormsg, 'password'); ?></td>
</tr>
<tr>
<td><label for="password2"><?php print $PALANG['password_again'] . ":"; ?></label></td>
<td><input id="password2" class="flat" type="password" name="password2"/></td>
<td><input id="password2" class="flat" type="password" name="password2" autocomplete="new-password"/></td>
<td><?= _error_field($errormsg, 'password2'); ?></td>
</tr>
<tr>

Loading…
Cancel
Save