From 5f07d46bcba70c34dbff54b49e98ceaed5abf0c4 Mon Sep 17 00:00:00 2001 From: Krishna Agarwal <159047652+krishnaa05@users.noreply.github.com> Date: Wed, 11 Dec 2024 08:49:49 -0600 Subject: [PATCH] Update auth.py --- fence/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fence/auth.py b/fence/auth.py index 6f3058dd4..fe77866dd 100644 --- a/fence/auth.py +++ b/fence/auth.py @@ -119,7 +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"]) + raise Unauthorized(config.get("ALLOW_NEW_USER_ON_LOGIN", False)) # do not create new active users automatically raise Unauthorized("New user is not yet authorized/activated in the system")