Skip to content

Commit

Permalink
update adfs user login error msg (#7390)
Browse files Browse the repository at this point in the history
user "The number of users exceeds the limit."
  • Loading branch information
imwhatiam authored Jan 20, 2025
1 parent a13f101 commit 3240611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seahub/adfs_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def assertion_consumer_service(request, org_id=None, attribute_mapping=None, cre
admins = User.objects.get_superusers()
for admin in admins:
saml_sso_failed.send(sender=None, to_user=admin.email, error_msg=error_msg)
return render_error(request, internal_server_error_msg)
return render_error(request, _("The number of users exceeds the limit."))

# check user number limit by org member quota
if org:
Expand All @@ -350,7 +350,7 @@ def assertion_consumer_service(request, org_id=None, attribute_mapping=None, cre
for org_admin in org_admins:
saml_sso_failed.send(sender=None, to_user=org_admin.email,
error_msg=error_msg)
return render_error(request, internal_server_error_msg)
return render_error(request, _("The number of users exceeds the limit."))

# authenticate the remote user
logger.debug('Trying to authenticate the user')
Expand Down

0 comments on commit 3240611

Please sign in to comment.