Skip to content

Commit bebe007

Browse files
authored
Merge pull request #31 from U4I-fedir-kryvytskyi/master
Log out old user when new user logs in
2 parents e6a23cd + 8d53d4b commit bebe007

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ltiauthenticator/__init__.py

+6
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ class LTIAuthenticateHandler(BaseHandler):
184184
that URL after authentication. Else, will send them to /home.
185185
"""
186186

187+
def set_login_cookie(self, user):
188+
super().set_login_cookie(user)
189+
190+
## Make sure that hub cookie is always set, even if the user was already logged in
191+
self.set_hub_cookie(user)
192+
187193
@gen.coroutine
188194
def post(self):
189195
"""

0 commit comments

Comments
 (0)