forked from sch/Blasta
24dbadf7dc
Add missing dependencies and files; Thank you to LeXofLeviafan and roughnecks.
13 lines
419 B
Python
13 lines
419 B
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
class UtilitiesHttp:
|
|
|
|
def is_jid_matches_to_session(accounts, sessions, request):
|
|
jabber_id = request.cookies.get('jabber_id')
|
|
session_key = request.cookies.get('session_key')
|
|
if (jabber_id and
|
|
jabber_id in accounts and
|
|
jabber_id in sessions and
|
|
session_key == sessions[jabber_id]):
|
|
return jabber_id
|