Skip to content

Commit 251c94f

Browse files
committed
Fix logout issue - userinfo was set to None
which caused the key to be present in session, but it shouldn't be
1 parent 211e513 commit 251c94f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pulseguardian/web.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def _load_user_from_email(email):
186186
mozdef.log(
187187
mozdef.ERROR,
188188
mozdef.ACCOUNT_UPDATE,
189-
"Failed to load fake account user",
189+
"Failed to load user account",
190190
details={"error": str(e), "email": email},
191191
)
192192
return None
@@ -677,7 +677,6 @@ def register_handler():
677677
@sh.wrapper()
678678
@oidc.oidc_logout
679679
def logout_handler():
680-
session["userinfo"] = None
681680
return redirect("/")
682681

683682

0 commit comments

Comments
 (0)