Browse Source

how the hell did this shit get here

master
Lynne Megido 1 year ago
parent
commit
7f41872c5a
Signed by: Lynne <thecoolone3@gmail.com> GPG Key ID: FB7B970303ACE499
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      web.py

+ 1
- 1
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'))

Loading…
Cancel
Save