mirror of
https://github.com/optim-enterprises-bv/Mailu-OIDC.git
synced 2025-10-29 17:22:20 +00:00
correcly fallback to DOMAIN when OIDC_USER_DOMAIN is empty/none
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user