You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (! function_exists('csrf_field')) {
/**
* Generate a CSRF token form field.
*
* @return \Illuminate\Support\HtmlString
*/
function csrf_field()
{
return new HtmlString('<input type="hidden" name="_token" autocomplete="off" value="'.csrf_token().'">');
}
}
Steps To Reproduce
On mobile safari, log into a username/password form and have it store your password. Attempt to login again and use autocomplete, you will get a 419 page expired error.
The text was updated successfully, but these errors were encountered:
maxheckel
changed the title
csrf_field should have autocomplete="off", on mobile devices I will get page expired errors when it autocompletes my password
csrf_field should have autocomplete="off", on mobile devices I will get page expired error when it autocompletes my password
Sep 12, 2023
Laravel Version
10.4.1
PHP Version
8.2.0
Database Driver & Version
No response
Description
Should replace the csrf_token method with this:
Steps To Reproduce
On mobile safari, log into a username/password form and have it store your password. Attempt to login again and use autocomplete, you will get a 419 page expired error.
The text was updated successfully, but these errors were encountered: