correcly fallback to DOMAIN when OIDC_USER_DOMAIN is empty/none

This commit is contained in:
Pőcze Bence
2025-03-31 02:00:32 +02:00
parent 4214a65d1a
commit 7931d2f634

View File

@@ -54,7 +54,7 @@ def login():
return render_oidc_template(form, fields)
if '@' not in username:
username = username + '@' + app.config.get('OIDC_USER_DOMAIN', app.config['DOMAIN'])
username = username + '@' + (app.config['OIDC_USER_DOMAIN'] or app.config['DOMAIN'])
user = models.User.get(username)
if user is None: