forked from MarseyWorld/MarseyWorld
user validation logic fix
parent
efee8b89e7
commit
1446bf582f
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue