public function twoStepVerification($request)
    {
        $user = Auth::User();

        if ($user) {
            $twoStepAuthStatus = $this->checkTwoStepAuthStatus($user->id);

            if ($twoStepAuthStatus->authStatus !== true) {
                return false;
            } else {
                if ($this->checkTimeSinceVerified($twoStepAuthStatus)) {
                    return false;
                }
            }

            return true;
        }

        return true;
    }
public function twoStepVerification($request)
    {
        $user = Auth::User();

        if ($user) {
            $twoStepAuthStatus = $this->checkTwoStepAuthStatus($user->id);

            if ($twoStepAuthStatus->authStatus !== true) {
                return false;
            } else {
                if ($this->checkTimeSinceVerified($twoStepAuthStatus)) {
                    return false;
                }
            }

            return true;
        }

        return true;
    }
public function twoStepVerification ( $ request ) { $ user = Auth :: User ( ) ; if ( $ user ) { $ twoStepAuthStatus = $ this -> checkTwoStepAuthStatus ( $ user -> id ) ; if ( $ twoStepAuthStatus -> authStatus !== true ) { return false ; } else { if ( $ this -> checkTimeSinceVerified ( $ twoStepAuthStatus ) ) { return false ; } } return true ; } return true ; }
Check if the user is authorized.

@param Request $request

@return bool
Check if the user is authorized .