File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,11 @@ public function authenticate(): Redirector|RedirectResponse|LoginResponse|null
102102 $ userModelEmail = config ("security.auth. $ guard ->name .email " );
103103 $ query = $ userModel ::query ();
104104
105- if (!empty ($ userModelUsername ) && $ credentialKey === 'name ' ) {
105+ if (! empty ($ userModelUsername ) && $ credentialKey === 'name ' ) {
106106 $ query ->where ($ userModelUsername , $ credentials [$ credentialKey ]);
107107 }
108108
109- if (!empty ($ userModelEmail ) && $ credentialKey === 'email ' ) {
109+ if (! empty ($ userModelEmail ) && $ credentialKey === 'email ' ) {
110110
111111 if ($ query ->getQuery ()->wheres ) { // Check if there's already a condition
112112 $ query ->orWhere ($ userModelEmail , $ credentials [$ credentialKey ]);
You can’t perform that action at this time.
0 commit comments