File tree 4 files changed +4
-16
lines changed
tests/fixtures/security/make-form-login/expected 4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 21
21
<input type="<?= $ username_is_email ? 'email ' : 'text ' ; ?> " value="{{ last_username }}" name="<?= $ username_field ; ?> " id="input<?= ucfirst ($ username_field ); ?> " class="form-control" autocomplete="<?= $ username_is_email ? 'email ' : 'username ' ; ?> " required autofocus>
22
22
<label for="inputPassword">Password</label>
23
23
<input type="password" name="password" id="inputPassword" class="form-control" autocomplete="current-password" required>
24
-
25
- <input type="hidden" name="_csrf_token"
26
- value="{{ csrf_token('authenticate') }}"
27
- >
24
+ <input type="hidden" name="_csrf_token" data-controller="csrf-protection" value="{{ csrf_token('authenticate') }}">
28
25
<?php if ($ support_remember_me && !$ always_remember_me ): ?>
29
26
30
27
<div class="checkbox mb-3">
Original file line number Diff line number Diff line change 21
21
<input type="<?= $ username_is_email ? 'email ' : 'text ' ; ?> " value="{{ last_username }}" name="_username" id="username" class="form-control" autocomplete="<?= $ username_is_email ? 'email ' : 'username ' ; ?> " required autofocus>
22
22
<label for="password">Password</label>
23
23
<input type="password" name="_password" id="password" class="form-control" autocomplete="current-password" required>
24
-
25
- <input type="hidden" name="_csrf_token"
26
- value="{{ csrf_token('authenticate') }}"
27
- >
24
+ <input type="hidden" name="_csrf_token" data-controller="csrf-protection" value="{{ csrf_token('authenticate') }}">
28
25
29
26
{#
30
27
Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
Original file line number Diff line number Diff line change 19
19
<input type =" email" value =" {{ last_username }}" name =" _username" id =" username" class =" form-control" autocomplete =" email" required autofocus >
20
20
<label for =" password" >Password</label >
21
21
<input type =" password" name =" _password" id =" password" class =" form-control" autocomplete =" current-password" required >
22
-
23
- <input type =" hidden" name =" _csrf_token"
24
- value =" {{ csrf_token(' authenticate' ) }}"
25
- >
22
+ <input type =" hidden" name =" _csrf_token" data-controller =" csrf-protection" value =" {{ csrf_token(' authenticate' ) }}" >
26
23
27
24
{#
28
25
Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
Original file line number Diff line number Diff line change 13
13
<input type =" email" value =" {{ last_username }}" name =" _username" id =" username" class =" form-control" autocomplete =" email" required autofocus >
14
14
<label for =" password" >Password</label >
15
15
<input type =" password" name =" _password" id =" password" class =" form-control" autocomplete =" current-password" required >
16
-
17
- <input type =" hidden" name =" _csrf_token"
18
- value =" {{ csrf_token(' authenticate' ) }}"
19
- >
16
+ <input type =" hidden" name =" _csrf_token" data-controller =" csrf-protection" value =" {{ csrf_token(' authenticate' ) }}" >
20
17
21
18
{#
22
19
Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
You can’t perform that action at this time.
0 commit comments