mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 23:19:42 -08:00
ea91d59ffc
* Switch to use username instead of email * Fixed indenting * Updated password language * Updated blades to reflect username instead of email * Changed password/reset controllers to use username instead of email * Redirect to login page instead of repeating the password reset form
62 lines
2 KiB
PHP
62 lines
2 KiB
PHP
@extends('layouts/basic')
|
|
|
|
|
|
{{-- Page content --}}
|
|
@section('content')
|
|
|
|
@if ($snipeSettings->custom_forgot_pass_url)
|
|
<a href="{{ $snipeSettings->custom_forgot_pass_url }}" rel="noopener">{{ trans('auth/general.forgot_password') }}</a>
|
|
@else
|
|
|
|
<form class="form" role="form" method="POST" action="{{ url('/password/email') }}">
|
|
{!! csrf_field() !!}
|
|
<div class="container">
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-4 col-md-offset-4">
|
|
|
|
<div class="box login-box" style="width: 100%">
|
|
<div class="box-header">
|
|
<h3 class="box-title"> {{ trans('auth/general.send_password_link') }}</h3>
|
|
</div>
|
|
|
|
|
|
<div class="login-box-body">
|
|
<div class="row">
|
|
|
|
<!-- Notifications -->
|
|
@include('notifications')
|
|
|
|
|
|
|
|
<div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}">
|
|
|
|
<div class="col-md-12">
|
|
<input type="text" class="form-control" name="username" value="{{ old('username') }}" placeholder="{{ trans('admin/users/table.username') }}">
|
|
{!! $errors->first('username', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="box-footer">
|
|
<button type="submit" class="btn btn-lg btn-primary btn-block">
|
|
{{ trans('auth/general.email_reset_password') }}
|
|
</button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
@endif
|
|
@stop
|
|
|