mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixes #2990 - disabled autocomplete on login
This commit is contained in:
parent
eb48e5ed1c
commit
84317f7f50
|
@ -4,7 +4,7 @@
|
||||||
{{-- Page content --}}
|
{{-- Page content --}}
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<form role="form" action="{{ url('/login') }}" method="POST">
|
<form role="form" action="{{ url('/login') }}" method="POST" autocomplete="off">
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
{!! $errors->first('username', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
{!! $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' : '' }}">
|
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
|
||||||
<input class="form-control" placeholder="{{ trans('admin/users/table.password') }}" name="password" type="password">
|
<input class="form-control" placeholder="{{ trans('admin/users/table.password') }}" name="password" type="password" autocomplete="off">
|
||||||
{!! $errors->first('password', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
{!! $errors->first('password', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
name="username"
|
name="username"
|
||||||
id="username"
|
id="username"
|
||||||
value="{{ Input::old('username', $user->username) }}"
|
value="{{ Input::old('username', $user->username) }}"
|
||||||
autocomplete="false"
|
autocomplete="off"
|
||||||
readonly
|
readonly
|
||||||
onfocus="this.removeAttribute('readonly');"
|
onfocus="this.removeAttribute('readonly');"
|
||||||
{{ ((config('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}
|
{{ ((config('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}
|
||||||
|
@ -146,7 +146,7 @@
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="password"
|
id="password"
|
||||||
value=""
|
value=""
|
||||||
autocomplete="false"
|
autocomplete="off"
|
||||||
readonly
|
readonly
|
||||||
onfocus="this.removeAttribute('readonly');"
|
onfocus="this.removeAttribute('readonly');"
|
||||||
{{ ((config('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}
|
{{ ((config('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}
|
||||||
|
|
Loading…
Reference in a new issue