diff --git a/fence/auth.py b/fence/auth.py index 3861951f8..6f3058dd4 100644 --- a/fence/auth.py +++ b/fence/auth.py @@ -119,6 +119,7 @@ def set_flask_session_values(user): return else: if not config["ALLOW_NEW_USER_ON_LOGIN"]: + raise Unauthorized(config["ALLOW_NEW_USER_ON_LOGIN"]) # do not create new active users automatically raise Unauthorized("New user is not yet authorized/activated in the system")