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')