‪TYPO3CMS  11.5
PasswordChangeEvent.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use Psr\EventDispatcher\StoppableEventInterface;
21 
27 final class ‪PasswordChangeEvent implements StoppableEventInterface
28 {
32  private ‪$invalid = false;
33 
37  private ‪$errorMessage;
38 
42  private ‪$user;
43 
48 
52  private ‪$rawPassword;
53 
54  public function ‪__construct(array ‪$user, string $newPasswordHash, string $rawNewPassword)
55  {
56  $this->user = ‪$user;
57  $this->passwordHash = $newPasswordHash;
58  $this->rawPassword = $rawNewPassword;
59  }
60 
61  public function ‪getUser(): array
62  {
63  return ‪$this->user;
64  }
65 
66  public function ‪getHashedPassword(): string
67  {
69  }
70 
71  public function ‪setHashedPassword(string ‪$passwordHash): void
72  {
73  $this->passwordHash = ‪$passwordHash;
74  }
75 
76  public function ‪getRawPassword(): string
77  {
78  return ‪$this->rawPassword;
79  }
80 
81  public function ‪setAsInvalid(string $message): void
82  {
83  $this->invalid = true;
84  $this->errorMessage = $message;
85  }
86 
87  public function ‪getErrorMessage(): ?string
88  {
90  }
91 
92  public function ‪isPropagationStopped(): bool
93  {
94  return ‪$this->invalid;
95  }
96 }
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\$rawPassword
‪string $rawPassword
Definition: PasswordChangeEvent.php:47
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\__construct
‪__construct(array $user, string $newPasswordHash, string $rawNewPassword)
Definition: PasswordChangeEvent.php:49
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\isPropagationStopped
‪isPropagationStopped()
Definition: PasswordChangeEvent.php:87
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent
Definition: PasswordChangeEvent.php:28
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\$errorMessage
‪string $errorMessage
Definition: PasswordChangeEvent.php:35
‪TYPO3\CMS\FrontendLogin\Event
Definition: AbstractConfirmedEvent.php:18
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\getErrorMessage
‪getErrorMessage()
Definition: PasswordChangeEvent.php:82
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\$user
‪array $user
Definition: PasswordChangeEvent.php:39
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\getRawPassword
‪getRawPassword()
Definition: PasswordChangeEvent.php:71
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\getUser
‪getUser()
Definition: PasswordChangeEvent.php:56
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\getHashedPassword
‪getHashedPassword()
Definition: PasswordChangeEvent.php:61
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\setHashedPassword
‪setHashedPassword(string $passwordHash)
Definition: PasswordChangeEvent.php:66
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\$passwordHash
‪string $passwordHash
Definition: PasswordChangeEvent.php:43
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\$invalid
‪bool $invalid
Definition: PasswordChangeEvent.php:31
‪TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent\setAsInvalid
‪setAsInvalid(string $message)
Definition: PasswordChangeEvent.php:76