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 \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 ( )
returntype

array

getHashedPassword ( )
returntype

string

setHashedPassword ( string $passwordHash)

Deprecated: will be removed in TYPO3 13

param string $passwordHash

the passwordHash

getRawPassword ( )
returntype

string

setAsInvalid ( string $message)

Deprecated: will be removed in TYPO3 13

param string $message

the message

getErrorMessage ( )

Deprecated: will be removed in TYPO3 13

returntype

string

isPropagationStopped ( )

Deprecated: will be removed in TYPO3 13

returntype

bool