how the hell did this shit get here

This commit is contained in:
Lynne Megido 2018-11-13 20:26:10 +10:00
parent f4b3b398aa
commit 7f41872c5a
Signed by: lynnesbian
GPG key ID: FB7B970303ACE499

2
web.py
View file

@ -143,7 +143,7 @@ def internal_auth_b():
if c.fetchone()[0] > 0:
#user already has an account with CG
#update the user's info to use the new info we just got, then redirect them to the login page
c.execute("UPDATE data SET client_id = ?, client_secret = ?, secret = ?, avi = ? WHERE username = %s AND instance = %s", (session['client_id'], session['client_secret'], session['secret'], session['avi'], session['username'], session['instance']))
c.execute("UPDATE data SET client_id = %s, client_secret = %s, secret = %s, avi = %s WHERE username = %s AND instance = %s", (session['client_id'], session['client_secret'], session['secret'], session['avi'], session['username'], session['instance']))
return redirect(url_for('log_in'))
else:
return redirect(url_for('create_password'))