<a href="/dashboard/user/{{ $current_user->id }}/api/regen" class="input-group-addon btn btn-danger">{{ trans('cachet.api.regenerate') }}</a> </div> <span class="help-block">{{ trans('forms.user.api-token-help') }}</span> </div> <hr> <div class="form-group"> <label class="checkbox-inline"> <input type="hidden" name="google2fa" value="0"> <input type='checkbox' name="google2fa" value="1" {{ $current_user->hasTwoFactor ? "checked" : "" }}> {{ trans('forms.setup.enable_google2fa') }} </label> </div> @if($current_user->hasTwoFactor) <div class="form-group"> <?php $google2fa_url = PragmaRX\Google2FA\Vendor\Laravel\Facade::getQRCodeGoogleUrl('Cachet', $current_user->email, $current_user->google_2fa_secret); ?> <img src="{{ $google2fa_url }}" class="img-responsive"> <span class='help-block'>{!! trans('forms.user.2fa.help') !!}</span> </div> @endif <button type="submit" class="btn btn-success">{{ trans('forms.update') }}</button> </div> </div> </fieldset> </form> </div> </div> </div> @stop
<input type="text" class="form-control" name="api_key" disabled value="{{ $loggedUser->api_key }}"> <a href="/dashboard/user/{{ $loggedUser->id }}/api/regen" class="input-group-addon btn btn-danger">{{ trans('cachet.api.regenerate') }}</a> </div> <span class="help-block">{{ trans('forms.user.api-token-help') }}</span> </div> <hr> <div class="form-group"> <label class="checkbox-inline"> <input type="hidden" name="google2fa" value="0"> <input type='checkbox' name="google2fa" value="1" {{ $loggedUser->hasTwoFactor ? "checked" : "" }}> {{ trans('forms.setup.enable_google2fa') }} </label> </div> @if($loggedUser->hasTwoFactor) <div class="form-group"> <?php $google2fa_url = PragmaRX\Google2FA\Vendor\Laravel\Facade::getQRCodeGoogleUrl('CachetHQ', $loggedUser->email, $loggedUser->google_2fa_secret); ?> <img src="{{ $google2fa_url }}" class="img-responsive"> <span class='help-block'>{!! trans('forms.user.2fa.help') !!}</span> </div> @endif </fieldset> <button type="submit" class="btn btn-success">{{ trans('forms.update') }}</button> </form> </div> </div> </div> @stop