common/models/Users.php
/**
     * Finds user by password reset token
     *
     * @param string $token password reset token
     *
     * @return static|null
     */
Finds user by password reset token
@param string $token password reset token

@return static|null
Finds user by password reset token @param string $token password reset token @return static|null
public static function findByPasswordResetToken($token) {
        if ( !static::isPasswordResetTokenValid($token)) {
            return null;
        }
        return static::findOne([
            'password_reset_token' => $token,
            'status'               => self::STATUS_ACTIVE,
        ]);
    }
public static function findByPasswordResetToken ( $ token ) { if ( ! static :: isPasswordResetTokenValid ( $ token ) ) { return null ; } return static :: findOne ( [ 'password_reset_token' => $ token , 'status' => self :: STATUS_ACTIVE , ] ) ; }
Finds user by password reset token
 @param string $token password reset token
Finds user by password reset token @param string $token password reset token