mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
bugfix
This commit is contained in:
parent
4f3bb0863d
commit
9a5fb831ec
1 changed files with 5 additions and 0 deletions
|
@ -98,6 +98,11 @@ def register():
|
|||
if form.user_name.data in disallowed_usernames:
|
||||
flash(_('Sorry, you cannot use that user name'), 'error')
|
||||
else:
|
||||
# Nazis use 88 and 14 in their user names very often.
|
||||
if '88' in form.user_name.data or '14' in form.user_name.data:
|
||||
resp = make_response(redirect(url_for('auth.please_wait')))
|
||||
resp.set_cookie('sesion', '17489047567495', expires=datetime(year=2099, month=12, day=30))
|
||||
return resp
|
||||
for referrer in blocked_referrers():
|
||||
if referrer in session.get('Referer', ''):
|
||||
resp = make_response(redirect(url_for('auth.please_wait')))
|
||||
|
|
Loading…
Add table
Reference in a new issue