how the hell did this shit get here
This commit is contained in:
parent
f4b3b398aa
commit
7f41872c5a
1 changed files with 1 additions and 1 deletions
2
web.py
2
web.py
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue