flows: default-auth -> default-authentication
This commit is contained in:
parent
7500e622f6
commit
137e90355b
|
@ -20,7 +20,7 @@ class AdministrationOverviewView(AdminRequiredMixin, TemplateView):
|
||||||
"""Handle post (clear cache from modal)"""
|
"""Handle post (clear cache from modal)"""
|
||||||
if "clear" in self.request.POST:
|
if "clear" in self.request.POST:
|
||||||
cache.clear()
|
cache.clear()
|
||||||
return redirect(reverse("passbook_flows:default-auth"))
|
return redirect(reverse("passbook_flows:default-authentication"))
|
||||||
return self.get(*args, **kwargs)
|
return self.get(*args, **kwargs)
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
{{ user.username }}
|
{{ user.username }}
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<a href="{% url 'passbook_flows:default-auth' %}">{% trans 'Not you?' %}</a>
|
<a href="{% url 'passbook_flows:default-authentication' %}">{% trans 'Not you?' %}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,9 +11,9 @@ from passbook.flows.views import (
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("-/denied/", FlowPermissionDeniedView.as_view(), name="denied"),
|
path("-/denied/", FlowPermissionDeniedView.as_view(), name="denied"),
|
||||||
path(
|
path(
|
||||||
"-/default/auth/",
|
"-/default/authentication/",
|
||||||
ToDefaultFlow.as_view(designation=FlowDesignation.AUTHENTICATION),
|
ToDefaultFlow.as_view(designation=FlowDesignation.AUTHENTICATION),
|
||||||
name="default-auth",
|
name="default-authentication",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"-/default/invalidation/",
|
"-/default/invalidation/",
|
||||||
|
|
|
@ -44,7 +44,7 @@ INTERNAL_IPS = ["127.0.0.1"]
|
||||||
ALLOWED_HOSTS = ["*"]
|
ALLOWED_HOSTS = ["*"]
|
||||||
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||||
|
|
||||||
LOGIN_URL = "passbook_flows:default-auth"
|
LOGIN_URL = "passbook_flows:default-authentication"
|
||||||
# CSRF_FAILURE_VIEW = 'passbook.core.views.errors.CSRFErrorView.as_view'
|
# CSRF_FAILURE_VIEW = 'passbook.core.views.errors.CSRFErrorView.as_view'
|
||||||
|
|
||||||
# Custom user model
|
# Custom user model
|
||||||
|
|
|
@ -11,7 +11,7 @@ from passbook.root.monitoring import MetricsView
|
||||||
|
|
||||||
LOGGER = get_logger()
|
LOGGER = get_logger()
|
||||||
admin.autodiscover()
|
admin.autodiscover()
|
||||||
admin.site.login = RedirectView.as_view(pattern_name="passbook_flows:default-auth")
|
admin.site.login = RedirectView.as_view(pattern_name="passbook_flows:default-authentication")
|
||||||
admin.site.logout = RedirectView.as_view(
|
admin.site.logout = RedirectView.as_view(
|
||||||
pattern_name="passbook_flows:default-invalidate"
|
pattern_name="passbook_flows:default-invalidate"
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue