feat: enhance user creation and editing with role assignment and secure password handling (ldaps merci guillaume)
This commit is contained in:
@@ -29,8 +29,10 @@ if (!empty($_POST['email'])) {
|
||||
$attributes['mail'] = [$_POST['email']];
|
||||
}
|
||||
|
||||
$_crypted_new_password = iconv('UTF-8', 'UTF-16LE', '"' . $_POST['new_password'] . '"');
|
||||
|
||||
if (!empty($_POST['new_password'])) {
|
||||
$attributes['userPassword'] = [$_POST['new_password']];
|
||||
$attributes['unicodePwd'] = $_crypted_new_password;
|
||||
}
|
||||
|
||||
$ldapAuth = new LDAPAuth();
|
||||
|
||||
Reference in New Issue
Block a user