mirror of
				https://github.com/optim-enterprises-bv/Mailu-OIDC.git
				synced 2025-10-30 17:47:54 +00:00 
			
		
		
		
	allow configure domain if username is not an email address
This commit is contained in:
		| @@ -42,6 +42,9 @@ def login(): | ||||
|             # TODO: Check if this is the correct way to handle this | ||||
|             return flask.render_template('login.html', form=form, fields=fields, openId=app.config['OIDC_ENABLED'], openIdEndpoint=utils.oic_client.get_redirect_url()) | ||||
|  | ||||
|         if '@' not in username: | ||||
|             username = username + '@' + app.config.get('OIDC_USER_DOMAIN', app.config['DOMAIN']) | ||||
|  | ||||
|         user = models.User.get(username) | ||||
|         if user is None: | ||||
|             user = models.User.create(username) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Pőcze Bence
					Pőcze Bence