private function resetAuthStatus($twoStepAuth)
    {
        $twoStepAuth->authCode = $this->generateCode();
        $twoStepAuth->authCount = 0;
        $twoStepAuth->authStatus = 0;
        $twoStepAuth->authDate = null;
        $twoStepAuth->requestDate = null;

        $twoStepAuth->save();

        return $twoStepAuth;
    }
private function resetAuthStatus($twoStepAuth)
    {
        $twoStepAuth->authCode = $this->generateCode();
        $twoStepAuth->authCount = 0;
        $twoStepAuth->authStatus = 0;
        $twoStepAuth->authDate = null;
        $twoStepAuth->requestDate = null;

        $twoStepAuth->save();

        return $twoStepAuth;
    }
private function resetAuthStatus ( $ twoStepAuth ) { $ twoStepAuth -> authCode = $ this -> generateCode ( ) ; $ twoStepAuth -> authCount = 0 ; $ twoStepAuth -> authStatus = 0 ; $ twoStepAuth -> authDate = null ; $ twoStepAuth -> requestDate = null ; $ twoStepAuth -> save ( ) ; return $ twoStepAuth ; }
Reset TwoStepAuth collection item and code.

@param collection $twoStepAuth

@return collection
Reset TwoStepAuth collection item and code .