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.
This commit is contained in:
Feige-cn 2022-11-08 01:32:38 +08:00 committed by GitHub
parent 3d59a78c9f
commit e8c461b14f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)