mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-19 20:14:09 -08:00
cea255995c
* refactor to clean up LDAP login, and make the login method easier to handle. * Login refactor cleanup * Google 2FA package * Adds Google Authenticator two-factor * Removed unused blade * Added optin setting in profile * Removed dumb comments * Made lock_passwords check more consistent * Additional two factor strings * Lock passwords check * Display feature disabled text if in demo mode * Two factor admin reset options * Translation strings
54 lines
2.1 KiB
PHP
54 lines
2.1 KiB
PHP
@extends('layouts/basic')
|
|
|
|
|
|
{{-- Page content --}}
|
|
@section('content')
|
|
<div class="container">
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-4 col-md-offset-4">
|
|
<form role="form" action="{{ 'two-factor' }}" method="POST">
|
|
|
|
<div class="box login-box">
|
|
<div class="box-header">
|
|
<h3 class="box-title"> {{ trans('admin/settings/general.two_factor') }}</h3>
|
|
</div>
|
|
|
|
|
|
<div class="login-box-body">
|
|
<div class="row">
|
|
|
|
|
|
<!-- Notifications -->
|
|
@include('notifications')
|
|
|
|
<div class="col-md-12">
|
|
<!-- CSRF Token -->
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
|
|
|
<fieldset>
|
|
<div class="form-group{{ $errors->has('secret') ? ' has-error' : '' }}">
|
|
<input class="form-control" placeholder="{{ trans('admin/settings/general.two_factor_secret') }}" name="two_factor_secret" type="text" autofocus>
|
|
{!! $errors->first('two_factor_secret', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="box-footer">
|
|
<button class="btn btn-lg btn-primary btn-block">{{ trans('general.submit') }}</button>
|
|
</div>
|
|
<div class="col-md-12 col-sm-12 col-xs-12 text-right" style="padding-top: 10px;">
|
|
<a href="{{ route('logout') }}">{{ trans('general.cancel') }}</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@stop
|