1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 09:26:03 +00:00
webvirtcloud/accounts
catborise f7dcdbab31 feat(accounts): a superuser ends a sign-in lock; the session length is a setting
A user locked by failed sign-ins could only be unlocked with
manage.py axes_reset_username on the server, and nothing in the panel
showed the lock. The Users page and the user's page now mark a locked
user, counted as django-axes counts (a username's failures from one
address, over browsers, in any letter case), and the user's page has
Unlock sign-in for a superuser; it ends the lock from every address and
is on the Logs page.

A sign-in lasted Django's default two weeks, also after the browser was
closed. It now ends Session length (hours) after the sign-in, a setting
on the Settings page, 24 by default; a change applies from the next
sign-in. An idle timeout would not help: an open VM list refreshes
itself every five seconds.

Blocking a user signs them out. django-auth-ldap does not check
is_active for an open session, so a blocked LDAP user kept theirs.

The OTP sign-in page showed its error as a red list inside the red box;
it is plain text as on the other sign-in page, and django-otp's errors
are in Turkish and Chinese.
2026-11-21 13:51:33 +03:00
..
migrations feat(vmbackups): VM owners back up and restore their VMs within a quota 2026-11-17 19:40:24 +03:00
templates feat(accounts): a superuser ends a sign-in lock; the session length is a setting 2026-11-21 13:51:33 +03:00
templatetags lint with black python. convert f style strings to old one. some small fixes 2020-11-05 12:34:31 +03:00
tests feat(accounts): a superuser ends a sign-in lock; the session length is a setting 2026-11-21 13:51:33 +03:00
__init__.py chore: remove code nothing uses 2026-11-06 10:53:37 +03:00
apps.py feat(accounts): a superuser ends a sign-in lock; the session length is a setting 2026-11-21 13:51:33 +03:00
auth.py fix(admin): a forced password change cannot trap a user or be skipped with a token 2026-10-26 10:12:53 +03:00
checks.py feat: an installation's own settings in data/local_settings.py; settings.py is part of the code 2026-11-20 17:50:43 +03:00
forms.py fix(accounts): owners given before one owner was the rule keep editable rights 2026-11-13 14:27:32 +03:00
lockout.py feat(accounts): a superuser ends a sign-in lock; the session length is a setting 2026-11-21 13:51:33 +03:00
middleware.py fix(api): an error's status says what it is, and its body is always {"detail"} 2026-11-07 13:29:46 +03:00
models.py feat(vmbackups): VM owners back up and restore their VMs within a quota 2026-11-17 19:40:24 +03:00
otp.py feat(accounts): a superuser ends a sign-in lock; the session length is a setting 2026-11-21 13:51:33 +03:00
urls.py feat(accounts): a superuser ends a sign-in lock; the session length is a setting 2026-11-21 13:51:33 +03:00
utils.py fix(accounts): an SSH key is a whole key, and added once 2026-11-12 22:09:16 +03:00
views.py feat(accounts): a superuser ends a sign-in lock; the session length is a setting 2026-11-21 13:51:33 +03:00