Commit 05bb8da9 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #2407 Removed password_change_needed mecanism

parent bfd687d7
......@@ -623,15 +623,6 @@ class plugin
return $string;
}
/*
* \brief Indicate whether a password change is needed or not
*/
function password_change_needed()
{
return FALSE;
}
/*!
* \brief Show header message for tab dialogs
*
......
......@@ -302,22 +302,6 @@ class tabs
}
}
/*
* \brief Ask all plugins for needed password changes
*/
function password_change_needed()
{
/* Ask all plugins for needed password changes */
foreach ($this->by_object as &$obj) {
if ($obj->password_change_needed()) {
return TRUE;
}
}
unset($obj);
return FALSE;
}
/*!
* \brief Check
*
......
......@@ -401,44 +401,6 @@ class userManagement extends management
}
}
/*! \brief Save user modifications.
* Whenever we save a 'new' user, request a password change for him.
*/
function saveChanges()
{
$str = management::saveChanges();
if (!empty($str)) return($str);
if (is_object($this->tabObject)) {
/* If tabObject still exists, it means there was some errors */
return "";
}
if (isset($this->last_tabObject->by_object['user']) && $this->last_tabObject->by_object['user']->password_change_needed()) {
$this->force_hash_type[$this->last_tabObject->dn] = $this->last_tabObject->by_object['user']->pw_storage;
$this->pwd_change_queue[] = $this->last_tabObject->dn;
return $this->handlePasswordQueue();
}
}
function cancelEdit()
{
$str = management::cancelEdit();
if(!empty($str)) return($str);
if(isset($this->last_tabObject->by_object['user']) &&
$this->last_tabObject->by_object['user']->dn != "new" &&
$this->last_tabObject->by_object['user']->password_change_needed()){
$this->force_hash_type[$this->last_tabObject->dn] = $this->last_tabObject->by_object['user']->pw_storage;
$this->pwd_change_queue[] = $this->last_tabObject->dn;
return($this->handlePasswordQueue());
}
}
/*! \brief Intiates user creation.
* If we've user templates, then the user will be asked to use to use one.
* -> See 'templateContinue' for further handling.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment