Development

This commit is contained in:
Matthew Grotke 2026-06-12 23:31:55 -04:00
parent 025adb9f15
commit 5b1f905ed0
7 changed files with 38 additions and 47 deletions

View file

@ -36,7 +36,7 @@ def email_verify():
con = config_utils.open_accounts_db()
con.execute(
'''UPDATE clients SET email=NULL, hashed_password=NULL,
tz_offset_seconds=NULL, verification_code=NULL, code_sent_ts=NULL
timezone=NULL, verification_code=NULL, code_sent_ts=NULL
WHERE cookie_unique_token=?''',
(token,)
)
@ -71,7 +71,7 @@ def email_verify():
)
con.execute(
'''UPDATE clients SET email=NULL, hashed_password=NULL,
tz_offset_seconds=NULL, verification_code=NULL, code_sent_ts=NULL
timezone=NULL, verification_code=NULL, code_sent_ts=NULL
WHERE cookie_unique_token=?''',
(token,)
)
@ -82,7 +82,7 @@ def email_verify():
return redirect(f'/{_PAGE}')
session['account_id'] = account['account_id']
session['tz_offset_seconds'] = int(client['tz_offset_seconds'])
session['timezone'] = str(client['timezone'] or '')
session['apply_changes_immediately'] = False
session.permanent = True