Skip to content

Commit 36c0f2e

Browse files
committed
Password: email is read-only on reset password form
1 parent d86b754 commit 36c0f2e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

resources/views/auth/passwords/reset.blade.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
class="form-control {{ $errors->has('email') ? 'is-invalid' : '' }}"
3030
name="email"
3131
value="{{ $email ?? old('email') }}"
32-
required
33-
autofocus>
32+
tabindex="-1"
33+
readonly>
3434
@if ($errors->has('email'))
3535
<div class="form-text" role="alert">
3636
{{ $errors->first('email') }}
@@ -47,7 +47,8 @@ class="form-control {{ $errors->has('email') ? 'is-invalid' : '' }}"
4747
type="password"
4848
class="form-control {{ $errors->has('password') ? 'is-invalid' : '' }}"
4949
name="password"
50-
required>
50+
required
51+
autofocus>
5152
@if ($errors->has('password'))
5253
<div class="form-text" role="alert">
5354
{{ $errors->first('password') }}

0 commit comments

Comments
 (0)