1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/accounts/tests
catborise 21bd56a9f9 fix(accounts): an admin still on the password "admin" must change it
Every upstream release and this fork's up to v2.0.0 created the first
user as admin/admin. The first-login password change only covered the
password the panel generates itself (data/admin_password), so an upgraded
installation whose admin never changed the default kept a working
admin/admin login with no prompt, on the pages and through API tokens.

Migration accounts.0013 marks a user named admin whose password is
"admin" with must_change_password: the next login goes to the password
change form, and the API refuses the user's tokens until then. Only that
one name is checked, so the migration hashes one password at most.

Found by upgrading an installation of the upstream release of
September 2026 (installer and Docker) to this version: admin/admin still
signed in.
2026-11-06 15:20:35 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_account_page.py feat(templates): the shared form and delete pages in a centred column 2026-10-31 18:10:05 +03:00
test_admin_email_otp.py fix(accounts): mailing an OTP QR code waits at most 10 seconds for the SMTP server 2026-11-05 11:04:08 +03:00
test_admin_password.py test: no seeded admin password, settings changed only for a test, no local libvirt by default 2026-11-06 13:48:03 +03:00
test_api_tokens.py fix(accounts): an API token form sent twice makes one token 2026-11-05 18:58:13 +03:00
test_audit_rows.py fix(accounts): mailing an OTP QR code waits at most 10 seconds for the SMTP server 2026-11-05 11:04:08 +03:00
test_change_password_permission.py fix(settings): new passwords pass Django's password validators 2026-11-06 11:01:43 +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 fix(accounts): an admin still on the password "admin" must change it 2026-11-06 15:20:35 +03:00
test_ldap_timeouts.py fix(accounts): an LDAP login waits a bounded time for the directory 2026-11-05 11:04:08 +03:00
test_login_lockout.py chore(accounts): django-axes keeps no record of successful logins 2026-11-05 10:36:34 +03:00
test_otp_login.py test: no seeded admin password, settings changed only for a test, no local libvirt by default 2026-11-06 13:48:03 +03:00
test_ssh_keys.py test: test files named by their topic, one file per topic 2026-11-06 13:48:04 +03:00
test_unique_email.py fix(accounts): an email address belongs to one user, so "Lost OTP?" reaches it 2026-10-26 11:19:42 +03:00
test_utils.py fix(accounts): the admin's Email OTP sent twice at once makes one device 2026-11-05 18:58:13 +03:00
test_views.py test: test files named by their topic, one file per topic 2026-11-06 13:48:04 +03:00