Fixes #2990 - disabled autocomplete on login

This commit is contained in:
snipe 2016-12-06 11:50:20 -08:00
parent eb48e5ed1c
commit 84317f7f50
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@
{{-- Page 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() }}" />
<div class="container">
@ -35,7 +35,7 @@
{!! $errors->first('username', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
</div>
<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>') !!}
</div>
<div class="checkbox">

View file

@ -117,7 +117,7 @@
name="username"
id="username"
value="{{ Input::old('username', $user->username) }}"
autocomplete="false"
autocomplete="off"
readonly
onfocus="this.removeAttribute('readonly');"
{{ ((config('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}
@ -146,7 +146,7 @@
class="form-control"
id="password"
value=""
autocomplete="false"
autocomplete="off"
readonly
onfocus="this.removeAttribute('readonly');"
{{ ((config('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}