summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f660d00)
raw | patch | inline | side by side (parent: f660d00)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 30 Nov 2007 10:30:07 +0000 (10:30 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 30 Nov 2007 10:30:07 +0000 (10:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7951 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/generic/class_user.inc | patch | blob | history |
index cb0d10f7f0df8f0ddd1528770155d5e06494a9d8..f67b555fc0040344d09f3d113a7d0d780b82576e 100644 (file)
var $old_photoData= "";
var $cert_dialog= FALSE;
var $picture_dialog= FALSE;
+ var $pwObject= NULL;
var $userPKCS12= "";
var $userSMIMECertificate= "";
}
}
+ /* Password configure dialog handling */
+ if(is_object($this->pwObject) && is_object($this->dialog)){
+ $output= $this->pwObject->configure();
+ if ($output != ""){
+ return $output;
+ }
+
+ $this->dialog= false;
+ }
+
/* Dialog handling */
if(is_object($this->dialog)){
/* Must be called before save_object */
}
}
+ /* Want password method editing? */
+ if ($this->acl_is_writeable("userPassword")){
+ if (isset($_POST['edit_pw_method'])){
+ if (!is_object($this->pwObject) || $this->pw_storage != $this->pwObject->get_hash_name()){
+ $temp= passwordMethod::get_available_methods();
+ $this->pwObject= new $temp[$this->pw_storage]($this->config);
+ $this->dialog= &$this->pwObject;
+ }
+ return ($this->pwObject->configure());
+ }
+ }
+
/* Want picture edit dialog? */
if($this->acl_is_writeable("userPicture")) {
if (isset($_POST['edit_picture'])){
}
}
+ /* Maybe the current password method want's to do some changes... */
+ if (is_object($this->pwObject)){
+ $this->pwObject->save($this->dn);
+ }
+
/* Optionally execute a command after we're done */
if ($mode == "add"){
$this->handle_post_events("add", array("uid" => $this->uid));