Skip to content

Commit

Permalink
i18n: missing translation in signup api ratelimit
Browse files Browse the repository at this point in the history
  • Loading branch information
saschasommer committed May 27, 2024
1 parent 76e8a96 commit 1c61311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosinnus/api_frontend/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def post(self, request):
limit_expires = check_user_login_ratelimit(username)
if limit_expires:
ratelimit_msg = (
'You have tried to log in too many times. You may try to log in again in: %(duration)s.'
_('You have tried to log in too many times. You may try to log in again in: %(duration)s.')
) % {'duration': naturaltime(limit_expires)}
raise serializers.ValidationError({'non_field_errors': [ratelimit_msg]})

Expand Down

0 comments on commit 1c61311

Please sign in to comment.