1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/accounts/tests
catborise 3210ef2eee fix(accounts): a username longer than the field is refused by the login form
Django's login form gives the username its max_length after the field
is built, so a longer username was not refused and reached
authentication. django-axes then stored it in its 255-character column,
which PostgreSQL refuses: a login with a 300-character username was a
500 (SQLite does not enforce the length). Both login forms, with and
without OTP, now check the length, so such a username is a form error
and never reaches authentication, the lockout or the Logs page.

This also turns the PostgreSQL leg of CI green again: the S-16 test
from #167 hit exactly this.
2026-10-23 16:06:10 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_admin_email_otp.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_admin_password.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_audit_rows.py feat(logs): changes to users, groups, owners, flavors and settings are logged 2026-10-23 11:10:24 +03:00
test_change_password_permission.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_checks.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_email_otp.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_first_login_password.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_login_lockout.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_otp_login.py fix(accounts): a username longer than the field is refused by the login form 2026-10-23 16:06:10 +03:00
test_security_fixes.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_utils.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_views.py fix(accounts): a VM's only owner can be edited when one owner is allowed 2026-10-23 13:30:25 +03:00