From fbe01609488167aa8e63b4db03d7c788a5956443 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Tue, 13 Apr 2021 22:23:05 +0200 Subject: [PATCH] On active le mdp en local --- annuaire/settings/common.py | 2 +- annuaire/settings/local.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/annuaire/settings/common.py b/annuaire/settings/common.py index 041fb7a..8f1d6a1 100644 --- a/annuaire/settings/common.py +++ b/annuaire/settings/common.py @@ -106,7 +106,7 @@ USE_TZ = True # Settings CAS # --- -LOGIN_URL = reverse_lazy("authens:login") +LOGIN_URL = reverse_lazy("authens:login.cas") LOGOUT_REDIRECT_URL = reverse_lazy("home") AUTHENS_USE_OLDCAS = False AUTHENS_USE_PASSWORD = False diff --git a/annuaire/settings/local.py b/annuaire/settings/local.py index 22be900..281f9fd 100644 --- a/annuaire/settings/local.py +++ b/annuaire/settings/local.py @@ -4,6 +4,8 @@ Settings pour le dev local de l'annuaire (hors vagrant). import os +from django.urls import reverse_lazy + from .common import * # NOQA from .common import BASE_DIR, INSTALLED_APPS, MIDDLEWARE, TESTING @@ -34,6 +36,8 @@ CACHES = {"default": {"BACKEND": "django.core.cache.backends.locmem.LocMemCache" AUTH_PASSWORD_VALIDATORS = [] PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"] +LOGIN_URL = reverse_lazy("authens:login") +AUTHENS_USE_PASSWORD = True # --- # Debug tool bar