public function getTemporaryUser($email)
    {
        $email = trim(strtolower($email));
        if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
            return false;
        }

        $userClass = $this->auth->getUserClass();
        $user = $userClass::where('email', $email)->first();

        if (!$user) {
            return false;
        }

        if (!$user->isTemporary()) {
            return false;
        }

        return $user;
    }
public function getTemporaryUser($email)
    {
        $email = trim(strtolower($email));
        if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
            return false;
        }

        $userClass = $this->auth->getUserClass();
        $user = $userClass::where('email', $email)->first();

        if (!$user) {
            return false;
        }

        if (!$user->isTemporary()) {
            return false;
        }

        return $user;
    }
public function getTemporaryUser ( $ email ) { $ email = trim ( strtolower ( $ email ) ) ; if ( ! filter_var ( $ email , FILTER_VALIDATE_EMAIL ) ) { return false ; } $ userClass = $ this -> auth -> getUserClass ( ) ; $ user = $ userClass :: where ( 'email' , $ email ) -> first ( ) ; if ( ! $ user ) { return false ; } if ( ! $ user -> isTemporary ( ) ) { return false ; } return $ user ; }
Gets a temporary user from an email address if one exists.

@param string $email email address

@return UserInterface|false
Gets a temporary user from an email address if one exists .