2016-03-25 01:18:05 -07:00
|
|
|
@extends('layouts/basic')
|
|
|
|
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
2021-09-22 00:00:44 -07:00
|
|
|
<form role="form" action="{{ url('/login') }}" method="POST" autocomplete="false">
|
|
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2021-09-22 00:00:44 -07:00
|
|
|
<!-- this is a hack to prevent Chrome from trying to autocomplete fields -->
|
|
|
|
<input type="text" name="prevent_autofill" id="prevent_autofill" value="" style="display:none;" aria-hidden="true">
|
|
|
|
<input type="password" name="password_fake" id="password_fake" value="" style="display:none;" aria-hidden="true">
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-4 col-md-offset-4">
|
|
|
|
|
|
|
|
<div class="box login-box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h1 class="box-title"> {{ trans('auth/general.login_prompt') }}</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="login-box-body">
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
@if ($snipeSettings->login_note)
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="alert alert-info">
|
2022-08-29 11:26:47 -07:00
|
|
|
{!! Helper::parseEscapedMarkedown($snipeSettings->login_note) !!}
|
2021-09-22 00:00:44 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<!-- Notifications -->
|
|
|
|
@include('notifications')
|
|
|
|
|
2022-04-29 08:35:40 -07:00
|
|
|
@if (!config('app.require_saml'))
|
2021-09-22 00:00:44 -07:00
|
|
|
<div class="col-md-12">
|
|
|
|
<!-- CSRF Token -->
|
|
|
|
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
|
|
|
|
<div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}">
|
2021-09-26 01:11:08 -07:00
|
|
|
<label for="username"><i class="fas fa-user" aria-hidden="true"></i> {{ trans('admin/users/table.username') }}</label>
|
2021-09-22 00:00:44 -07:00
|
|
|
<input class="form-control" placeholder="{{ trans('admin/users/table.username') }}" name="username" type="text" id="username" autocomplete="off" autofocus>
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first('username', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
2021-09-22 00:00:44 -07:00
|
|
|
</div>
|
|
|
|
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
|
|
|
|
<label for="password"><i class="fa fa-key" aria-hidden="true"></i> {{ trans('admin/users/table.password') }}</label>
|
|
|
|
<input class="form-control" placeholder="{{ trans('admin/users/table.password') }}" name="password" type="password" id="password" autocomplete="off">
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first('password', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
2021-09-22 00:00:44 -07:00
|
|
|
</div>
|
2023-04-03 12:18:18 -07:00
|
|
|
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
|
|
|
|
<label class="form-control">
|
|
|
|
<input name="remember" type="checkbox" value="1"> {{ trans('auth/general.remember_me') }}
|
2021-09-22 00:00:44 -07:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</div> <!-- end col-md-12 -->
|
2022-04-29 08:35:40 -07:00
|
|
|
@endif
|
2021-09-22 00:00:44 -07:00
|
|
|
</div> <!-- end row -->
|
|
|
|
|
2022-04-29 08:35:40 -07:00
|
|
|
@if (!config('app.require_saml') && $snipeSettings->saml_enabled)
|
2023-05-10 00:14:28 -07:00
|
|
|
<div class="row">
|
2021-11-30 20:09:29 -08:00
|
|
|
<div class="text-right col-md-12">
|
2021-09-22 00:00:44 -07:00
|
|
|
<a href="{{ route('saml.login') }}">{{ trans('auth/general.saml_login') }}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
2022-04-29 08:35:40 -07:00
|
|
|
@if (config('app.require_saml'))
|
2023-05-10 02:37:01 -07:00
|
|
|
<a class="btn btn-primary btn-block" href="{{ route('saml.login') }}">{{ trans('auth/general.saml_login') }}</a>
|
2022-04-29 08:35:40 -07:00
|
|
|
@else
|
2023-05-10 02:37:01 -07:00
|
|
|
<button class="btn btn-primary btn-block">{{ trans('auth/general.login') }}</button>
|
2023-05-10 00:14:28 -07:00
|
|
|
@endif
|
|
|
|
|
2021-09-22 00:00:44 -07:00
|
|
|
@if ($snipeSettings->custom_forgot_pass_url)
|
2023-05-10 02:53:11 -07:00
|
|
|
<div class="col-md-12 text-right" style="padding-top: 15px;">
|
|
|
|
<a href="{{ $snipeSettings->custom_forgot_pass_url }}" rel="noopener">{{ trans('auth/general.forgot_password') }}</a>
|
|
|
|
</div>
|
2022-04-29 08:35:40 -07:00
|
|
|
@elseif (!config('app.require_saml'))
|
2023-05-10 02:53:11 -07:00
|
|
|
<div class="col-md-12 text-right" style="padding-top: 15px;">
|
|
|
|
<a href="{{ route('password.request') }}">{{ trans('auth/general.forgot_password') }}</a>
|
|
|
|
</div>
|
2021-09-22 00:00:44 -07:00
|
|
|
@endif
|
|
|
|
|
|
|
|
</div>
|
2023-05-10 02:37:01 -07:00
|
|
|
|
2021-09-22 00:00:44 -07:00
|
|
|
</div> <!-- end login box -->
|
|
|
|
|
2023-05-10 02:37:01 -07:00
|
|
|
@if (($snipeSettings->google_login=='1') && ($snipeSettings->google_client_id!='') && ($snipeSettings->google_client_secret!=''))
|
|
|
|
|
|
|
|
<a href="{{ route('google.redirect') }}" class="btn btn-block btn-social btn-google">
|
|
|
|
<i class="fa-brands fa-google"></i> {{ trans('auth/general.google_login') }}
|
|
|
|
</a>
|
|
|
|
@endif
|
|
|
|
|
2021-09-22 00:00:44 -07:00
|
|
|
</div> <!-- col-md-4 -->
|
|
|
|
|
|
|
|
</div> <!-- end row -->
|
|
|
|
</div> <!-- end container -->
|
|
|
|
</form>
|
|
|
|
|
|
|
|
@stop
|