src/entities/User.php
public function requestPasswordReset() : void
    {
        if (!empty($this->password_reset_token) && self::isPasswordResetTokenValid($this->password_reset_token)) {
            throw new \DomainException(Yii::t('setrun/user', 'Password resetting is already requested'));
        }
        $this->generatePasswordResetToken();
    }
public function requestPasswordReset() : void
    {
        if (!empty($this->password_reset_token) && self::isPasswordResetTokenValid($this->password_reset_token)) {
            throw new \DomainException(Yii::t('setrun/user', 'Password resetting is already requested'));
        }
        $this->generatePasswordResetToken();
    }
public function requestPasswordReset ( ) : void { if ( ! empty ( $ this -> password_reset_token ) && self :: isPasswordResetTokenValid ( $ this -> password_reset_token ) ) { throw new \ DomainException ( Yii :: t ( 'setrun/user' , 'Password resetting is already requested' ) ) ; } $ this -> generatePasswordResetToken ( ) ; }
Request to reset the user's password.
@return void
Request to reset the user s password .