2 parents de7f4c3 + 1698421 commit 2b1672eCopy full SHA for 2b1672e
1 file changed
src/Controllers/OAuthController.php
@@ -111,7 +111,7 @@ public function callBack(): RedirectResponse
111
$users->addToDefaultGroup($user);
112
}
113
114
- if ($this->userExist->isBanned()) {
+ if ($this->userExist && $this->userExist->isBanned()) {
115
return redirect()->to(config('Auth')->logoutRedirect())->with('error', $this->userExist->getBanMessage() ?? lang('Auth.bannedUser'));
116
117
0 commit comments