banner text and also rename variable

master
justcool393 2022-10-17 18:23:07 -05:00
parent 4cb02189cf
commit 96d63ed5de
3 changed files with 4 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -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:

View File

@ -10,7 +10,7 @@
<div class="center">
<div class="col-10 col-md-5">
<div class="text-center px-3 my-8">
hi fish i need some txt thx
<img src="assets/images/WPDBYE_w_text_2.png">
</div>
</div>
</div>