This commit is contained in:
Frédéric FRANCE 2026-03-14 18:32:18 +01:00 committed by GitHub
parent 699718ab35
commit dc1fc47118
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1229,7 +1229,7 @@ if ($action == 'create' || $action == 'adduserldap') {
print '<td>';
//$permissiontoselfeditpassword = $object->hasRight('user', 'self', 'password');
$permissiontoselfeditpassword = 1; // In creation, we suppose it to true
if ($permissiontoselfeditpassword) {
if ($permissiontoselfeditpassword) { // @phpstan-ignore-line because value is forced
print '<input type="checkbox" name="forcepasswordchange" id="forcepasswordchange" value="1"'.(GETPOST('forcepasswordchange') == '1' ? ' checked="checked"' : '').'>';
print '<label class="opacitymedium" for="forcepasswordchange">'.$langs->trans("AtNextLogin").'</label>';
} else {