mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-14 18:54:43 +01:00
Fix issue where users could login to their team even though they were already on the team (#2198)
* Fix issue where users couldn't login to their team even though they were already on the team
This commit is contained in:
@@ -512,7 +512,7 @@ def oauth_redirect():
|
||||
)
|
||||
return redirect(url_for("auth.login"))
|
||||
|
||||
if get_config("user_mode") == TEAMS_MODE:
|
||||
if get_config("user_mode") == TEAMS_MODE and user.team_id is None:
|
||||
team_id = api_data["team"]["id"]
|
||||
team_name = api_data["team"]["name"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user