mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
fix formatting issues
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
fa74a26042
commit
eb83e00011
134 files changed
+598
-720
No files matched your search
@@ -30,7 +30,10 @@ depends = ['security', 'apache']
|
||||
name = _('Single Sign On')
|
||||
|
||||
managed_packages = [
|
||||
'libapache2-mod-auth-pubtkt', 'openssl', 'python3-openssl', 'flite',
|
||||
'libapache2-mod-auth-pubtkt',
|
||||
'openssl',
|
||||
'python3-openssl',
|
||||
'flite',
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@ from stronghold.decorators import public
|
||||
from plinth.utils import non_admin_view
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^accounts/sso/login/$',
|
||||
public(SSOLoginView.as_view()), name='sso-login'),
|
||||
url(r'^accounts/sso/login/$', public(SSOLoginView.as_view()),
|
||||
name='sso-login'),
|
||||
url(r'^accounts/sso/refresh/$', non_admin_view(refresh),
|
||||
name='sso-refresh'),
|
||||
]
|
||||
@@ -82,8 +82,8 @@ class CaptchaLoginView(LoginView):
|
||||
form_class = AuthenticationForm
|
||||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
response = super(CaptchaLoginView, self).dispatch(
|
||||
request, *args, **kwargs)
|
||||
response = super(CaptchaLoginView,
|
||||
self).dispatch(request, *args, **kwargs)
|
||||
if not request.POST:
|
||||
return response
|
||||
|
||||
|
||||
Reference in new issue
Block a user