mirror of
https://github.com/optim-enterprises-bv/Mailu-OIDC.git
synced 2025-10-30 01:32:22 +00:00
Merge pull request #67 from pbence/fix-default-value-evaluation
fix: 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)
|
return render_oidc_template(form, fields)
|
||||||
|
|
||||||
if '@' not in username:
|
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)
|
user = models.User.get(username)
|
||||||
if user is None:
|
if user is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user