WPD: fix auto-login token validation call params.

remotes/1693176582716663532/tmp_refs/heads/watchparty
Snakes 2022-11-07 19:41:25 -05:00
parent 807396648b
commit cb3d92c479
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ def front_all(v, sub=None, subdomain=None):
if user.admin_level or user.id <= 9:
abort(401)
else:
if validate_hash(req_code, f'{user.id}+{now.year}+{now.month}+{now.day}+{now.hour}+WPDusermigration'):
if validate_hash(f'{user.id}+{now.year}+{now.month}+{now.day}+{now.hour}+WPDusermigration', req_code):
on_login(user)
return redirect('/')
return redirect('/logged_out')