flows: default-auth -> default-authentication
This commit is contained in:
		| @ -20,7 +20,7 @@ class AdministrationOverviewView(AdminRequiredMixin, TemplateView): | ||||
|         """Handle post (clear cache from modal)""" | ||||
|         if "clear" in self.request.POST: | ||||
|             cache.clear() | ||||
|             return redirect(reverse("passbook_flows:default-auth")) | ||||
|             return redirect(reverse("passbook_flows:default-authentication")) | ||||
|         return self.get(*args, **kwargs) | ||||
|  | ||||
|     def get_context_data(self, **kwargs): | ||||
|  | ||||
| @ -37,7 +37,7 @@ | ||||
|             {{ user.username }} | ||||
|         </div> | ||||
|         <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> | ||||
|  | ||||
| @ -11,9 +11,9 @@ from passbook.flows.views import ( | ||||
| urlpatterns = [ | ||||
|     path("-/denied/", FlowPermissionDeniedView.as_view(), name="denied"), | ||||
|     path( | ||||
|         "-/default/auth/", | ||||
|         "-/default/authentication/", | ||||
|         ToDefaultFlow.as_view(designation=FlowDesignation.AUTHENTICATION), | ||||
|         name="default-auth", | ||||
|         name="default-authentication", | ||||
|     ), | ||||
|     path( | ||||
|         "-/default/invalidation/", | ||||
|  | ||||
| @ -44,7 +44,7 @@ INTERNAL_IPS = ["127.0.0.1"] | ||||
| ALLOWED_HOSTS = ["*"] | ||||
| 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' | ||||
|  | ||||
| # Custom user model | ||||
|  | ||||
| @ -11,7 +11,7 @@ from passbook.root.monitoring import MetricsView | ||||
|  | ||||
| LOGGER = get_logger() | ||||
| 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( | ||||
|     pattern_name="passbook_flows:default-invalidate" | ||||
| ) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer