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 10, 2024
1 parent d76a19c commit ec95f97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fence/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def set_flask_session_values(user):
return
else:
if not config["ALLOW_NEW_USER_ON_LOGIN"]:
logger.debug(f"ALLOW_NEW_USER_ON_LOGIN is set to {ALLOW_NEW_USER_ON_LOGIN}")
# 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 ec95f97

Please sign in to comment.