From e8c461b14f84d13ab2da7179e9f6205a4eefdf53 Mon Sep 17 00:00:00 2001 From: Feige-cn <65696105+Feige-cn@users.noreply.github.com> Date: Tue, 8 Nov 2022 01:32:38 +0800 Subject: [PATCH] Update web.py In Admin view page, Editor UI Configuration - Default Settings for New Users - Default Language, set up the new user's default language is not effective. I changed this web.py, add a line of code in 1248 lines in register function. Creating the new user need to take the default language. --- cps/web.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cps/web.py b/cps/web.py index e1b69ce9..19fb2d12 100755 --- a/cps/web.py +++ b/cps/web.py @@ -1245,6 +1245,7 @@ def register(): password = generate_random_password() content.password = generate_password_hash(password) content.role = config.config_default_role + content.locale = config.config_default_locale content.sidebar_view = config.config_default_show try: ub.session.add(content)