src/Helpers/TwoFactorAuthorization/TwoFactorAuthHelper.php
public function doTwoFactorAuthLogin($userId) {

        // Get the 2FA code
        $codeToInput = $this->getCodeToInput();

        // Update the user's database record wtih the 2FA code & timestamp
        $this->updateUserRecordWithTwoFactorAuthCode($codeToInput, $userId);

        // Put together the SMS message
        $message  = config('lasallecmsfrontend.site_name');
        $message .= ". Your two factor authorization login code is ";
        $message .= $codeToInput;

        $this->shortMessageService->sendSMS($this->getUserPhoneCountryCode($userId), $this->getUserPhoneNumber($userId), $message);
    }
public function doTwoFactorAuthLogin($userId) {

        // Get the 2FA code
        $codeToInput = $this->getCodeToInput();

        // Update the user's database record wtih the 2FA code & timestamp
        $this->updateUserRecordWithTwoFactorAuthCode($codeToInput, $userId);

        // Put together the SMS message
        $message  = config('lasallecmsfrontend.site_name');
        $message .= ". Your two factor authorization login code is ";
        $message .= $codeToInput;

        $this->shortMessageService->sendSMS($this->getUserPhoneCountryCode($userId), $this->getUserPhoneNumber($userId), $message);
    }
public function doTwoFactorAuthLogin ( $ userId ) { // Get the 2FA code $ codeToInput = $ this -> getCodeToInput ( ) ; // Update the user's database record wtih the 2FA code & timestamp $ this -> updateUserRecordWithTwoFactorAuthCode ( $ codeToInput , $ userId ) ; // Put together the SMS message $ message = config ( 'lasallecmsfrontend.site_name' ) ; $ message .= ". Your two factor authorization login code is " ; $ message .= $ codeToInput ; $ this -> shortMessageService -> sendSMS ( $ this -> getUserPhoneCountryCode ( $ userId ) , $ this -> getUserPhoneNumber ( $ userId ) , $ message ) ; }
Two Factor Authorization for the front-end LOGIN

@param  int    $userId          User ID
@return void
Two Factor Authorization for the front - end LOGIN