- Merge with closedverse-video-support
- user_tools moved to forms.py
- community_tools moved to forms.py
This commit is contained in:
some weird guy
2023-08-19 17:17:00 -07:00
parent 49477bf178
commit 1b33a2aad1
50 changed files with 660 additions and 439 deletions
-6
View File
@@ -42,12 +42,6 @@ class ClosedMiddleware(object):
# can just forbid post requests for the time being (but leav our funny logout message :3)
if not request.user.is_active() and request.method != 'GET' and request.get_full_path() != '/logout/':
return HttpResponseForbidden()
# If there isn't a request.session
if not request.session.get('passwd'):
request.session['passwd'] = request.user.password
else:
if request.session['passwd'] != request.user.password:
logout(request)
response = self.get_response(request)
if request.user.is_authenticated:
# for reverse proxy