UserController.php
106 $this->tempPermissions[] = $permissionManager->addTempPermission($oidStr, '', PersistenceAction::READ);
107 $this->tempPermissions[] = $permissionManager->addTempPermission($oidStr.'.password', '', PersistenceAction::UPDATE);
199 protected function changePasswordImpl(User $user, $oldPassword, $newPassword, $newPasswordRepeated) {
Session is the interface for session implementations and defines access to session variables.
Definition: Session.php:19
changePasswordImpl(User $user, $oldPassword, $newPassword, $newPasswordRepeated)
Change a users password.
Definition: UserController.php:199
EventManager is responsible for dispatching events to registered listeners.
Definition: EventManager.php:21
IllegalArgumentException signals an exception in method arguments.
Definition: IllegalArgumentException.php:18
const AFTER_COMMIT
An AFTER_COMMIT event occurs after the transaction is committed.
Definition: TransactionEvent.php:35
TransactionEvent instances are fired at different phases of a transaction.
Definition: TransactionEvent.php:23
afterCommit(TransactionEvent $event)
Remove temporary permissions after commit.
Definition: UserController.php:219
verifyPassword($password)
Verify the given password against the password of the user.
requireTransaction()
Start or join a transaction that will be committed at the end of execution.
Definition: Controller.php:334
Implementations of Configuration give access to the application configuration.
Definition: Configuration.php:32
PersistenceFacade defines the interface for PersistenceFacade implementations.
Definition: PersistenceFacade.php:23
static filter(array $nodeList, ObjectId $oid=null, $type=null, $values=null, $properties=null, $useRegExp=true)
Get Nodes that match given conditions from a list.
Definition: Node.php:182
Controller is the base class of all controllers.
Definition: Controller.php:49
ActionMapper implementations are responsible for instantiating and executing Controllers based on the...
Definition: ActionMapper.php:21
PrincipalFactory implementations are used to retrieve User and Role instances.
Definition: PrincipalFactory.php:19
addListener($eventName, $callback)
Register a listener for a given event.
PermissionManager implementations are used to handle all authorization requests.
Definition: PermissionManager.php:20
PersistenceAction values are used to define actions on PersistentObject instances.
Definition: PersistenceAction.php:19
UserController is used to change the current user's password.
Definition: UserController.php:49
Localization defines the interface for storing localized entity instances and retrieving them back.
Definition: Localization.php:32
Message is used to get localized messages to be used in the user interface.
Definition: Message.php:23
__construct(Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration, PrincipalFactory $principalFactory, EventManager $eventManager)
Constructor.
Definition: UserController.php:68