Merge branch 'patch-1' of git://github.com/l1n/BookStack into l1n-patch-1

This commit is contained in:
Dan Brown 2021-01-30 17:15:23 +00:00
commit 4d3194d784
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,8 @@
<input type="password" id="{{ $name }}" name="{{ $name }}"
@if($errors->has($name)) class="text-neg" @endif
@if(isset($placeholder)) placeholder="{{$placeholder}}" @endif
@if(isset($autocomplete)) autocomplete="{{$autocomplete}}" @endif
@if(old($name)) value="{{ old($name)}}" @endif>
@if($errors->has($name))
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
@endif
@endif

View File

@ -74,7 +74,7 @@
<div class="grid half mt-m gap-xl">
<div>
<label for="password">{{ trans('auth.password') }}</label>
@include('form.password', ['name' => 'password'])
@include('form.password', ['name' => 'password', 'autocomplete' => 'new-password'])
</div>
<div>
<label for="password-confirm">{{ trans('auth.password_confirm') }}</label>