diff options
| author | Bobby <[email protected]> | 2024-08-30 22:01:49 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-08-30 22:01:49 -0400 |
| commit | 373b1b994cf5fca8a2402f8d3dafa71b7da8760e (patch) | |
| tree | 171da0dfb4eced494440b6f0df56ef330293e367 /middleware | |
| parent | ed21b61667121c9bc1f1e53bd72603300b3ef5b2 (diff) | |
| download | yugen-373b1b994cf5fca8a2402f8d3dafa71b7da8760e.tar.xz yugen-373b1b994cf5fca8a2402f8d3dafa71b7da8760e.zip | |
auth fix
Diffstat (limited to 'middleware')
| -rw-r--r-- | middleware/authentication.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/middleware/authentication.py b/middleware/authentication.py index 44899bf..afd15b1 100644 --- a/middleware/authentication.py +++ b/middleware/authentication.py @@ -57,13 +57,6 @@ class AuthMiddleware: token_type=request.user.discord_token_type, ) - # update user object - request.user.discord_global_name = user["global_name"] - request.user.discord_guild_name = user["guild_name"] - request.user.save() - - print(user, "user") - if not user["is_authorized"]: logout(request) request.session["next"] = request.get_full_path() |
