1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/accounts/tests
catborise 85b5c769e9 feat(accounts): a superuser sees and deletes a user's API tokens
The user page a superuser opens from the user list has an API Tokens
tab: the user's tokens with their name, first characters, creation,
expiry and last use, and a delete button for one that may have leaked.
The token itself is never shown; only its digest is kept.

The delete reuses the owner's delete view with the user's id; only a
superuser may name another user. The confirmation and the log row say
whose token it was ("API token backup of alice"); the owner's own
confirmation now reads "Delete "API token backup"?" too. The profile
and the user page share one token table, and one script that opens a
tab named in the address (#apitokens).
2026-10-25 14:13:47 +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_api_tokens.py feat(accounts): a superuser sees and deletes a user's API tokens 2026-10-25 14:13:47 +03:00
test_audit_rows.py feat(logs): every VM operation writes an audit row the VM's Logs tab finds by UUID 2026-10-24 14:14:53 +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