From 1446bf582f8da450e19ca3ff3fc4209bd2edd479 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Mon, 17 Oct 2022 20:37:09 -0500 Subject: [PATCH] user validation logic fix --- files/routes/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index e0f776fdd..a6e3a7cbb 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -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')