supprimé : sqlite

modifié :         views/loginlogout.py
This commit is contained in:
kitoy 2022-08-07 18:32:07 +02:00
parent f33e9f611a
commit 265e6d5f65
2 changed files with 5 additions and 1 deletions

0
sqlite
View File

View File

@ -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 :