mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-21 06:13:45 +00:00
session cookie handling
This commit is contained in:
parent
fb7422e5a8
commit
bd8b8ca410
3 changed files with 12 additions and 7 deletions
|
|
@ -1,8 +1,12 @@
|
|||
from . import Controller
|
||||
from .session import SessionStorage
|
||||
|
||||
|
||||
class Authentication(object):
|
||||
def isAuthenticated(self, request):
|
||||
if "owrx-session" in request.cookies:
|
||||
session = SessionStorage.getSharedInstance().getSession(request.cookies["owrx-session"].value)
|
||||
return session is not None
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue