This repository has been archived by the owner on Feb 17, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 24
Invalid argument supplied for foreach() #26
Comments
I should add a fallback to an array. |
Fixed in commit. |
Ok thanks nut it's not the real problem.
Actually credentials not handle in hidden input. why ?? i have tested with creating 2 hidden input with credentials, and 2fa works great...... |
I've fixed temporarily like this in auth.blade wainting best solution.
|
You should check your guard since the credentials are retrieved using the Attempt event. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
laravel version: 7.12
Facade\Ignition\Exceptions\ViewException
Invalid argument supplied for foreach() (View: /resources/views/vendor/laraguard/auth.blade.php)
This error appears when 2fa is activated on a successfull login request at the 2fa step
$credentials is empty.
The text was updated successfully, but these errors were encountered: