PasswordChangeEvent

The PSR-14 event \TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent contains information about the password that has been set and will be stored in the database shortly.

Deprecated since version 12.4

The PasswordChangeEvent should not be used to validate user passwords, since it is not possible to visualize to the user why a password has been rejected. Therefore the following methods of the event are deprecated:

  • ->setAsInvalid()
  • ->getErrorMessage()
  • ->isPropagationStopped()
  • ->setHashedPassword()

A custom password policy validator should be used to validate user passwords.

Example

API

class PasswordChangeEvent
Fully qualified name
\TYPO3\CMS\FrontendLogin\Event\PasswordChangeEvent

Informal event that contains information about the password which was set, and is about to be stored in the database.

getUser ( )
Returns
array
getHashedPassword ( )
Returns
string
setHashedPassword ( string $passwordHash)

Deprecated: will be removed in TYPO3 13

param $passwordHash

the passwordHash

getRawPassword ( )
Returns
string
setAsInvalid ( string $message)

Deprecated: will be removed in TYPO3 13

param $message

the message

getErrorMessage ( )

Deprecated: will be removed in TYPO3 13

Returns
?string
isPropagationStopped ( )

Deprecated: will be removed in TYPO3 13

Returns
bool