Skip to content

Commit

Permalink
Fixes #2990 - disabled autocomplete on login
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Dec 6, 2016
1 parent eb48e5e commit 84317f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/views/auth/login.blade.php
Expand Up @@ -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">
Expand Down Expand Up @@ -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">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/users/edit.blade.php
Expand Up @@ -117,7 +117,7 @@ class="form-control"
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' : '') }}
Expand Down Expand Up @@ -146,7 +146,7 @@ class="form-control"
class="form-control"
id="password"
value=""
autocomplete="false"
autocomplete="off"
readonly
onfocus="this.removeAttribute('readonly');"
{{ ((config('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}
Expand Down

0 comments on commit 84317f7

Please sign in to comment.