Skip to content

Commit a233fb7

Browse files
💅
1 parent dcd1fd9 commit a233fb7

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

src/handlers/api.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ class UserInfoHandler(AuthHandler):
6363

6464
def prepare(self):
6565
"""Override prepare to bypass parameter validation issues"""
66-
# Skip the BaseAPIHandler parameter validation that's causing issues
67-
# and go directly to the parent class's prepare method
6866
super(BaseAPIHandler, self).prepare()
6967

7068
def get(self):
@@ -89,16 +87,14 @@ class LoginHandler(AuthHandler):
8987
kwargs = {
9088
"*": {}, # Override any inherited parameter requirements
9189
"GET": {
92-
"next": {"type": str, "required": False, "default": "/"} # Optional redirect URL
90+
"next": {"type": str, "required": False, "default": "/"} # Redirect URL
9391
}
9492
}
95-
93+
9694
def prepare(self):
9795
"""Override prepare to bypass parameter validation issues"""
98-
# Skip the BaseAPIHandler parameter validation that's causing issues
99-
# and go directly to the parent class's prepare method
10096
super(BaseAPIHandler, self).prepare()
101-
97+
10298
def get(self):
10399
self.redirect(self.get_argument("next", "/"))
104100

@@ -108,16 +104,14 @@ class LogoutHandler(AuthHandler):
108104
kwargs = {
109105
"*": {}, # Override any inherited parameter requirements
110106
"GET": {
111-
"next": {"type": str, "required": False, "default": "/"} # Optional redirect URL
107+
"next": {"type": str, "required": False, "default": "/"} # Redirect URL
112108
}
113109
}
114-
110+
115111
def prepare(self):
116112
"""Override prepare to bypass parameter validation issues"""
117-
# Skip the BaseAPIHandler parameter validation that's causing issues
118-
# and go directly to the parent class's prepare method
119113
super(BaseAPIHandler, self).prepare()
120-
114+
121115
def get(self):
122116
self.clear_cookie("user")
123117
self.redirect(self.get_argument("next", "/"))

src/handlers/oauth.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ class GitHubLoginHandler(BaseAPIHandler, GithubOAuth2Mixin):
2424

2525
def prepare(self):
2626
"""Override prepare to bypass parameter validation issues"""
27-
# Skip the BaseAPIHandler parameter validation that's causing issues
28-
# and go directly to the parent class's prepare method
2927
super(BaseAPIHandler, self).prepare()
3028

3129
async def get(self):

0 commit comments

Comments
 (0)