Skip to content

Commit a24d0a1

Browse files
committed
Fix styling
1 parent 8f3eb6c commit a24d0a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Services/Login.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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]);

0 commit comments

Comments
 (0)