@extends('layouts.app') @section('title', 'Account') @if($secret)@push('head')@endpush @endif @section('content')

Account

@csrf

Profile

@csrf

{{ $user->password ? 'Change password' : 'Set a password' }}

@if($user->password)
@endif

Two-factor authentication

@if($user->mfa_enabled)

Two-factor authentication is on. Enter a current code to turn it off.

@csrf
@elseif($secret)

Scan this code with Google Authenticator, Authy or a similar app, then enter the 6-digit code it shows.

Can't scan? Enter this key manually: {{ $secret }}

@csrf
@else

Add a second step at login with an authenticator app.

@csrf
@endif

API tokens

Use a token to read your surveys from your own tools: Authorization: Bearer TOKEN on {{ url('/api/v1/surveys') }}.

@if(session('new_token'))
Copy your new token now, it will not be shown again:
{{ session('new_token') }}
@endif
@csrf
@if($tokens->count()) @foreach($tokens as $t)@endforeach
NameLast used
{{ $t->name }}{{ $t->last_used_at?->diffForHumans() ?? 'Never' }}
@csrf @method('DELETE')
@endif
@endsection