19 require_once(BASE.
"wcmf/lib/presentation/class.Controller.php");
20 require_once(BASE.
"wcmf/lib/persistence/class.PersistenceFacade.php");
21 require_once(BASE.
"wcmf/lib/model/class.Node.php");
22 require_once(BASE.
"wcmf/lib/util/class.ObjectFactory.php");
65 if ($this->_request->getAction() ==
'save')
68 if ($this->_request->getValue(
'changepassword') ==
'yes')
72 $userManager = &$objectFactory->createInstanceFromConfig(
'implementation',
'UserManager');
73 if ($userManager == null)
77 $user = &$rightsManager->getAuthUser();
79 $principal = $userManager->getPrincipal($oid);
81 $userManager->startTransaction();
82 $userManager->changePassword($principal->getLogin(), $this->_request->getValue(
'oldpassword'),
83 $this->_request->getValue(
'newpassword1'), $this->_request->getValue(
'newpassword2'));
84 $message .=
Message::get(
"The password was successfully changed.");
85 $userManager->commitTransaction();
88 $this->_response->setValue(
"message", $message);
91 $this->_response->setAction(
'edituser');
get($message, $parameters=null, $domain='', $lang='')
throwEx($message, $file='', $line='')
UserController is used to edit data of the current users.
Controller is the base class of all controllers. If a Controller has a view it is expected to reside ...