From 2e25e797dd0ff52fdec6b16e8b3b51a281a86602 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 25 Sep 2021 14:08:49 +0200 Subject: [PATCH] Fix #2002 (Added missing default locale and default language view upon importing ldap user) --- cps/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cps/admin.py b/cps/admin.py index 0a0b362d..2a65e53a 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -1740,7 +1740,9 @@ def ldap_import_create_user(user, user_data): content.password = '' # dummy password which will be replaced by ldap one content.email = useremail content.kindle_mail = kindlemail - content.role = config.config_default_role + content.kindle_mail = kindlemail + content.default_language = config.default_language + content.locale = config.locale content.sidebar_view = config.config_default_show content.allowed_tags = config.config_allowed_tags content.denied_tags = config.config_denied_tags