mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-30 07:59:50 -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
80 lines
3.1 KiB
PHP
80 lines
3.1 KiB
PHP
@extends('layouts/basic')
|
|
|
|
|
|
{{-- Page content --}}
|
|
@section('content')
|
|
|
|
|
|
<form class="form-horizontal" role="form" method="POST" action="{{ url('/password/reset') }}">
|
|
{!! csrf_field() !!}
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-6 col-md-offset-3">
|
|
|
|
<div class="box login-box" style="width: 100%">
|
|
<div class="box-header">
|
|
<h3 class="box-title"> {{ trans('auth/general.reset_password') }}</h3>
|
|
</div>
|
|
|
|
|
|
<div class="login-box-body">
|
|
<div class="row">
|
|
|
|
<!-- Notifications -->
|
|
@include('notifications')
|
|
|
|
|
|
|
|
<input type="hidden" name="token" value="{{ $token }}">
|
|
|
|
<div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}">
|
|
<label class="col-md-4 control-label">{{ trans('admin/users/table.username') }}</label>
|
|
|
|
<div class="col-md-6">
|
|
<input type="text" class="form-control" name="username" value="{{ $username or old('username') }}">
|
|
{!! $errors->first('username', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
|
|
<label class="col-md-4 control-label">{{ trans('admin/users/table.password') }}</label>
|
|
|
|
<div class="col-md-6">
|
|
<input type="password" class="form-control" name="password">
|
|
{!! $errors->first('password', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
|
|
<label class="col-md-4 control-label">{{ trans('admin/users/table.password_confirm') }}</label>
|
|
<div class="col-md-6">
|
|
<input type="password" class="form-control" name="password_confirmation">
|
|
{!! $errors->first('password_confirmation', '<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.reset_password') }}
|
|
</button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
@stop
|
|
|
|
|