2
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-18 03:25:37 +00:00

Merge remote-tracking branch 'fix_default_language/master'

This commit is contained in:
Ozzie Isaacs 2022-12-25 09:45:14 +01:00
commit 85a6616606

View File

@ -1246,6 +1246,7 @@ def register():
password = generate_random_password() password = generate_random_password()
content.password = generate_password_hash(password) content.password = generate_password_hash(password)
content.role = config.config_default_role content.role = config.config_default_role
content.locale = config.config_default_locale
content.sidebar_view = config.config_default_show content.sidebar_view = config.config_default_show
try: try:
ub.session.add(content) ub.session.add(content)