replace pspec with spec

This commit is contained in:
2022-03-20 03:08:51 +03:00
parent a7c6d95b34
commit 6ee1c8ef5a
3 changed files with 6 additions and 7 deletions

View File

@ -38,8 +38,6 @@ class LogoutView(BaseView):
:return: redirect to main page
"""
await check_authorized(self.request)
await forget(self.request, HTTPFound("/"))
response = HTTPFound("/")
await forget(self.request, response)
return response
raise HTTPFound("/")