Skip to content
Snippets Groups Projects
Commit 381fef56 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #1671 si ldap active, change_password=>"N"

parent 35e28c74
No related branches found
No related tags found
No related merge requests found
...@@ -350,6 +350,10 @@ class users_controler extends ObjectControler implements ObjectControlerIF ...@@ -350,6 +350,10 @@ class users_controler extends ObjectControler implements ObjectControlerIF
md5($params['userdefaultpassword']) md5($params['userdefaultpassword'])
); );
if($_SESSION['config']['ldap'] == "true"){
$user->change_password = "N";
}
if (self::userExists($user->user_id)) { if (self::userExists($user->user_id)) {
$error .= _USER . ' ' . _ALREADY_EXISTS . '#'; $error .= _USER . ' ' . _ALREADY_EXISTS . '#';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment