public function post2faRegisterDisplayForm(Request $request) {

        if (config('lasallecmsusermanagement.auth_users_registration_front_end_require_terms_of_service')) {
            if (!$request->input('terms-of-service')) {
                return redirect()->route('auth.register')
                    ->withInput($request->only('name', 'email', 'phone_country_code', 'phone_number'))
                    ->withErrors([
                        'terms-of-service' => 'Please read our Terms of Service',
                    ]);
            }
        }

        // Go through the special validation-only command bus
        $response = $this->dispatchFrom(Create2faRegisterUserCommand::class, $request);

        //Session::flash('status_code', $response['status_code'] );

        if ($response['status_text'] == "validation_failed") {
            Session::flash('message', $response['errorMessages']->first());
            // Return to the edit form with error messages
            return Redirect::back()
                ->withInput($response['data'])
                ->withErrors($response['errorMessages']);
        }


        // The validation is ok. Now, onto the Two Factor Authorization.
        $this->twoFactorAuthHelper->doTwoFactorAuthRegistration($response['data']);


        // The initial validation is ok, but we do not want to set up an actual database record until the 2FA
        // is complete. Otherwise, the bots could create actual records, which is something we are trying to avoid
        // with the 2FA process.

        // The 2FA code session var is set in $this->twoFactorAuthHelper->doTwoFactorAuthRegistration($response['data']);

        return view('usermanagement::frontend.' . $this->frontend_template_name . '.register.two_factor_auth', [
            'title'                    => 'Register',
            'two_factor_auth_workflow' => true,
            'name'                     => $response['data']['name'],
            'email'                    => $response['data']['email'],
            'password'                 => $response['data']['password'],
            'password_confirmation'    => $response['data']['password_confirmation'],
            'phone_country_code'       => $response['data']['phone_country_code'],
            'phone_number'             => $response['data']['phone_number'],
            'formStartDateTime'        => Carbon::now(),
        ]);
    }