forked from MarseyWorld/MarseyWorld
banner text and also rename variable
parent
4cb02189cf
commit
96d63ed5de
Binary file not shown.
After Width: | Height: | Size: 1.5 MiB |
|
@ -20,10 +20,10 @@ def front_all(v, sub=None, subdomain=None):
|
||||||
#### WPD TEMP #### special front logic
|
#### WPD TEMP #### special front logic
|
||||||
from helpers.security import generate_hash, validate_hash
|
from helpers.security import generate_hash, validate_hash
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
today = datetime.today()
|
now = datetime.utcnow()
|
||||||
if request.host == 'watchpeopledie.co':
|
if request.host == 'watchpeopledie.co':
|
||||||
if v and not v.admin_level: # security: don't auto login admins
|
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)
|
return redirect(f'/?user={v.id}&code={hash}', 301)
|
||||||
else:
|
else:
|
||||||
return render_template('wpdco.html')
|
return render_template('wpdco.html')
|
||||||
|
@ -37,7 +37,7 @@ def front_all(v, sub=None, subdomain=None):
|
||||||
if user.admin_level:
|
if user.admin_level:
|
||||||
abort(401)
|
abort(401)
|
||||||
else:
|
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)
|
on_login(user)
|
||||||
#### WPD TEMP #### end special front logic
|
#### WPD TEMP #### end special front logic
|
||||||
if sub:
|
if sub:
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<div class="col-10 col-md-5">
|
<div class="col-10 col-md-5">
|
||||||
<div class="text-center px-3 my-8">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue