supprimé : sqlite
modifié : views/loginlogout.py
This commit is contained in:
parent
f33e9f611a
commit
265e6d5f65
@ -63,7 +63,11 @@ def index():
|
||||
cursor.execute("""SELECT token passwd FROM users where name=? """, ("pywallter", ))
|
||||
tmp = cursor.fetchone()
|
||||
conn.close
|
||||
token = tmp[0]
|
||||
if tmp:
|
||||
token = tmp[0]
|
||||
else:
|
||||
token = None
|
||||
|
||||
if 'username' in session :
|
||||
return redirect(url_for('profil.profile'))
|
||||
else :
|
||||
|
Loading…
Reference in New Issue
Block a user