Skip to content

Commit

Permalink
Update auth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnaa05 authored Dec 11, 2024
1 parent a3d6ee5 commit 5f07d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fence/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 5f07d46

Please sign in to comment.