[Fix] Fixed failing frontend tests due to renaming (#335)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#335
This commit is contained in:
2026-02-17 03:09:32 +13:00
parent 5150027f0d
commit 0ff046363c
3 changed files with 7 additions and 5 deletions

View File

@ -245,7 +245,9 @@ def register(request):
context["message"] = "Invalid username/email/password"
return render(request, "static/login.html", context)
if UnicodeUsernameValidator(username) is not None:
try:
UnicodeUsernameValidator()(username)
except ValidationError:
context["message"] = (
"Enter a valid username. This value may contain only letters, "
"numbers, and @/./+/-/_ characters."