diff --git a/files/assets/images/WPD/WPDBYE_w_text_2.png b/files/assets/images/WPD/WPDBYE_w_text_2.png new file mode 100644 index 0000000000..37ae34fd8c Binary files /dev/null and b/files/assets/images/WPD/WPDBYE_w_text_2.png differ diff --git a/files/routes/front.py b/files/routes/front.py index 768723dbc7..8f42a567c1 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -20,10 +20,10 @@ def front_all(v, sub=None, subdomain=None): #### WPD TEMP #### special front logic from helpers.security import generate_hash, validate_hash from datetime import datetime - today = datetime.today() + now = datetime.utcnow() if request.host == 'watchpeopledie.co': if v and not v.admin_level: # security: don't auto login admins - hash = generate_hash(f'{v.id}+{today.year}+{today.month}+{today.day}+{today.hour}+WPDusermigration') + hash = generate_hash(f'{v.id}+{now.year}+{now.month}+{now.day}+{now.hour}+WPDusermigration') return redirect(f'/?user={v.id}&code={hash}', 301) else: return render_template('wpdco.html') @@ -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}+{today.year}+{today.month}+{today.day}+{today.hour}+WPDusermigration'): + if validate_hash(req_code, f'{v.id}+{now.year}+{now.month}+{now.day}+{now.hour}+WPDusermigration'): on_login(user) #### WPD TEMP #### end special front logic if sub: diff --git a/files/templates/wpdco.html b/files/templates/wpdco.html index dff9a9de35..5ccdfaa6d1 100644 --- a/files/templates/wpdco.html +++ b/files/templates/wpdco.html @@ -10,7 +10,7 @@
- hi fish i need some txt thx +