Small tweaks to prevent Chrome autofill

This commit is contained in:
snipe 2017-10-19 01:59:13 -07:00
parent c5893b4445
commit 9c06912efd

View file

@ -4,9 +4,13 @@
{{-- Page content --}} {{-- Page content --}}
@section('content') @section('content')
<form role="form" action="{{ url('/login') }}" method="POST" autocomplete="off"> <form role="form" action="{{ url('/login') }}" method="POST" autocomplete="false">
<input type="hidden" name="_token" value="{{ csrf_token() }}" /> <input type="hidden" name="_token" value="{{ csrf_token() }}" />
<!-- this is a hack to prevent Chrome from trying to autocomplete fields -->
<input type="text" name="prevent_autofill" id="prevent_autofill" value="" style="display:none;" />
<input type="password" name="password_fake" id="password_fake" value="" style="display:none;" />
<div class="container"> <div class="container">
<div class="row"> <div class="row">
@ -38,7 +42,7 @@
<fieldset> <fieldset>
<div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}"> <div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}">
<input class="form-control" placeholder="{{ trans('admin/users/table.username') }}" name="username" type="text" autofocus> <input class="form-control" placeholder="{{ trans('admin/users/table.username') }}" name="username" type="text" autocomplete="off" autofocus>
{!! $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' : '' }}">