user validation logic fix

master
justcool393 2022-10-17 20:37:09 -05:00
parent efee8b89e7
commit 1446bf582f
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:
abort(401)
else:
if validate_hash(req_code, f'{v.id}+{now.year}+{now.month}+{now.day}+{now.hour}+WPDusermigration'):
if validate_hash(req_code, f'{user.id}+{now.year}+{now.month}+{now.day}+{now.hour}+WPDusermigration'):
on_login(user)
return redirect('/')
return redirect('/logged_out')