adding new two-factor auth stuff to user profile controller
This commit is contained in:
		@@ -9,10 +9,14 @@ use Illuminate\Support\Collection;
 | 
			
		||||
use Illuminate\Support\Facades\DB;
 | 
			
		||||
use Inertia\Response;
 | 
			
		||||
use Jenssegers\Agent\Agent;
 | 
			
		||||
use Laravel\Fortify\Features;
 | 
			
		||||
use Laravel\Jetstream\Http\Controllers\Inertia\Concerns\ConfirmsTwoFactorAuthentication;
 | 
			
		||||
use Laravel\Jetstream\Jetstream;
 | 
			
		||||
 | 
			
		||||
class UserProfileController extends Controller
 | 
			
		||||
{
 | 
			
		||||
    use ConfirmsTwoFactorAuthentication;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Show the general profile settings screen.
 | 
			
		||||
     *
 | 
			
		||||
@@ -27,6 +31,7 @@ class UserProfileController extends Controller
 | 
			
		||||
        $this->validateTwoFactorAuthenticationState($request);
 | 
			
		||||
 | 
			
		||||
        return Jetstream::inertia()->render($request, 'Profile/Show', [
 | 
			
		||||
            'confirmsTwoFactorAuthentication' => Features::optionEnabled(Features::twoFactorAuthentication(), 'confirm'),
 | 
			
		||||
            'sessions'                        => $this->sessions($request)->all(),
 | 
			
		||||
            'timezones'                       => timezone_identifiers_list(),
 | 
			
		||||
        ]);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user