2016-03-25 01:18:05 -07:00
|
|
|
@extends('layouts/basic')
|
|
|
|
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
2017-10-19 12:22:27 -07:00
|
|
|
|
2021-02-03 14:56:26 -08:00
|
|
|
|
2017-10-19 12:22:27 -07:00
|
|
|
@if ($snipeSettings->custom_forgot_pass_url)
|
2021-02-03 14:56:26 -08:00
|
|
|
<!-- The admin settings specify an LDAP password reset URL to let's send them there -->
|
|
|
|
<div class="col-md-4 col-md-offset-4" style="margin-top: 20px;">
|
|
|
|
<div class="box box-header text-center">
|
|
|
|
<h3 class="box-title">
|
|
|
|
<a href="{{ $snipeSettings->custom_forgot_pass_url }}" rel="noopener">
|
|
|
|
{{ trans('auth/general.ldap_reset_password') }}
|
|
|
|
</a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-10-19 12:22:27 -07:00
|
|
|
@else
|
|
|
|
|
2021-02-03 14:56:26 -08:00
|
|
|
|
2016-05-20 00:25:45 -07:00
|
|
|
<form class="form" role="form" method="POST" action="{{ url('/password/email') }}">
|
|
|
|
{!! csrf_field() !!}
|
2016-03-25 01:18:05 -07:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2016-05-20 00:25:45 -07:00
|
|
|
|
2016-08-02 12:39:49 -07:00
|
|
|
<div class="col-md-4 col-md-offset-4">
|
2016-05-20 00:25:45 -07:00
|
|
|
|
2016-08-02 12:30:22 -07:00
|
|
|
<div class="box login-box" style="width: 100%">
|
2021-01-26 19:57:39 -08:00
|
|
|
<div class="box-header with-border">
|
2020-03-31 23:36:56 -07:00
|
|
|
<h2 class="box-title"> {{ trans('auth/general.send_password_link') }}</h2>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2016-05-20 00:25:45 -07:00
|
|
|
<div class="login-box-body">
|
2021-01-26 19:57:39 -08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="alert alert-info">
|
|
|
|
<i class="fa fa-info-circle" aria-hidden="true"></i>
|
|
|
|
{!! trans('auth/general.username_help_top') !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
2016-05-20 00:25:45 -07:00
|
|
|
<div class="row">
|
|
|
|
|
2021-01-26 19:57:39 -08:00
|
|
|
|
2016-05-20 00:25:45 -07:00
|
|
|
<!-- Notifications -->
|
|
|
|
@include('notifications')
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-02 23:57:00 -08:00
|
|
|
<div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}">
|
2016-05-20 00:25:45 -07:00
|
|
|
|
|
|
|
<div class="col-md-12">
|
2021-01-26 19:57:39 -08:00
|
|
|
<label for="username"><i class="fa fa-user" aria-hidden="true"></i> {{ trans('admin/users/table.username') }} </label>
|
2020-11-02 23:57:00 -08:00
|
|
|
<input type="text" class="form-control" name="username" value="{{ old('username') }}" placeholder="{{ trans('admin/users/table.username') }}" aria-label="username">
|
|
|
|
{!! $errors->first('username', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
2016-05-20 00:25:45 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-26 19:57:39 -08:00
|
|
|
</div>
|
2016-05-20 00:25:45 -07:00
|
|
|
|
2021-01-26 19:57:39 -08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<br>
|
|
|
|
<!-- show help text toggle -->
|
|
|
|
<a href="#" id="show">
|
|
|
|
<i class="fa fa-caret-right"></i>
|
|
|
|
{{ trans('general.show_help') }}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- hide help text toggle -->
|
|
|
|
<a href="#" id="hide" style="display:none">
|
|
|
|
<i class="fa fa-caret-up"></i>
|
|
|
|
{{ trans('general.hide_help') }}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- help text -->
|
|
|
|
<p class="help-block" id="help-text" style="display:none">
|
|
|
|
{!! trans('auth/general.username_help_bottom') !!}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-26 19:57:39 -08:00
|
|
|
|
2016-05-20 00:25:45 -07:00
|
|
|
<div class="box-footer">
|
|
|
|
<button type="submit" class="btn btn-lg btn-primary btn-block">
|
|
|
|
{{ trans('auth/general.email_reset_password') }}
|
2021-01-26 19:57:39 -08:00
|
|
|
</button>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
2016-05-20 00:25:45 -07:00
|
|
|
|
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-20 00:25:45 -07:00
|
|
|
|
|
|
|
</form>
|
2017-10-19 12:22:27 -07:00
|
|
|
|
|
|
|
@endif
|
2016-05-20 00:25:45 -07:00
|
|
|
@stop
|
|
|
|
|
2021-01-26 19:57:39 -08:00
|
|
|
@push('js')
|
|
|
|
<script nonce="{{ csrf_token() }}">
|
|
|
|
$(document).ready(function () {
|
|
|
|
$("#show").click(function(){
|
2021-01-26 20:05:01 -08:00
|
|
|
$("#help-text").fadeIn(500);
|
2021-01-26 19:57:39 -08:00
|
|
|
$("#show").hide();
|
|
|
|
$("#hide").show();
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#hide").click(function(){
|
2021-01-26 20:05:01 -08:00
|
|
|
$("#help-text").fadeOut(300);
|
2021-01-26 19:57:39 -08:00
|
|
|
$("#show").show();
|
|
|
|
$("#hide").hide();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endpush
|
|
|
|
|