mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-23 01:16:18 +00:00
Check that username match with UUID in login
This commit is contained in:
parent
d9d90ffacf
commit
81c356355b
@ -31,6 +31,9 @@ def login_check():
|
||||
elif UserManager.get(store, session.get('userid'))[0] != UserManager.SUCCESS:
|
||||
session.clear()
|
||||
should_login = True
|
||||
elif UserManager.get(store, session.get('userid'))[1].name != session.get('username'):
|
||||
session.clear()
|
||||
should_login = True
|
||||
|
||||
if should_login:
|
||||
flash('Please login')
|
||||
@ -48,4 +51,3 @@ def index():
|
||||
from .user import *
|
||||
from .folder import *
|
||||
from .playlist import *
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user