More debug for session
This commit is contained in:
parent
800f8dee99
commit
7ae284b48c
1 changed files with 2 additions and 0 deletions
|
@ -197,6 +197,8 @@ def playable_required(f):
|
|||
if 'subscribed' not in session or not session['subscribed'] or session['ip'] != ip:
|
||||
session['subscribed'] = user is not None
|
||||
session['ip'] = ip
|
||||
if DEBUG:
|
||||
print('New user : ',session)
|
||||
if not session['subscribed']:
|
||||
return render_template('not_subscribed.html')
|
||||
|
||||
|
|
Loading…
Reference in a new issue