src/Helpers/TwoFactorAuthorization/TwoFactorAuthHelper.php
public function doTwoFactorAuthRegistration($data) {

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

        // Set this 2FA code into a session variable, since
        // this is the only opportunity to so save the ephemerally generated 2FA
        $this->request->session()->put('codeToInput', $codeToInput);


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


        $this->shortMessageService->sendSMS($data['phone_country_code'], $data['phone_number'], $message);
    }
public function doTwoFactorAuthRegistration($data) {

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

        // Set this 2FA code into a session variable, since
        // this is the only opportunity to so save the ephemerally generated 2FA
        $this->request->session()->put('codeToInput', $codeToInput);


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


        $this->shortMessageService->sendSMS($data['phone_country_code'], $data['phone_number'], $message);
    }
public function doTwoFactorAuthRegistration ( $ data ) { // Get the 2FA code $ codeToInput = $ this -> getCodeToInput ( ) ; // Set this 2FA code into a session variable, since // this is the only opportunity to so save the ephemerally generated 2FA $ this -> request -> session ( ) -> put ( 'codeToInput' , $ codeToInput ) ; // Put together the SMS message $ message = config ( 'lasallecmsfrontend.site_name' ) ; $ message .= ". Your two factor authorization login code is " ; $ message .= $ codeToInput ; $ this -> shortMessageService -> sendSMS ( $ data [ 'phone_country_code' ] , $ data [ 'phone_number' ] , $ message ) ; }
Two Factor Authorization for the front-end REGISTRATION

@param  array    $data
@return void
Two Factor Authorization for the front - end REGISTRATION