mirror of
https://gitlab.com/octospacc/TelegramIndex-Fork.git
synced 2025-02-18 04:20:51 +01:00
12 lines
321 B
Python
12 lines
321 B
Python
|
from aiohttp import web
|
||
|
|
||
|
|
||
|
class LogoutView:
|
||
|
async def logout_get(self, req):
|
||
|
resp = web.Response(
|
||
|
status=302, headers={"Location": str(req.app.router["home"].url_for())}
|
||
|
)
|
||
|
resp.del_cookie(name="_tgindex_session")
|
||
|
resp.del_cookie(name="_tgindex_secret")
|
||
|
return resp
|