[loggi-yxq] Add password minimum-length validation #122

Closed
opened 2026-02-21 20:55:32 +01:00 by matthias · 0 comments
Owner

Bead ID: loggi-yxq
Type: task
Priority: P2
Status: closed
Close reason: Added MIN_PASSWORD_LENGTH=8 check in auth.py register endpoint, minlength=8 HTML attribute on register form, new test_register_password_too_short test, updated all test fixtures to use >=8 char passwords.


auth.py accepts any non-empty password during registration. A single-character password is valid. Add a minimum length check (e.g. 8 chars) in the register endpoint + matching HTML minlength attribute on the form. Also add a test.

**Bead ID:** `loggi-yxq` **Type:** task **Priority:** P2 **Status:** closed **Close reason:** Added MIN_PASSWORD_LENGTH=8 check in auth.py register endpoint, minlength=8 HTML attribute on register form, new test_register_password_too_short test, updated all test fixtures to use >=8 char passwords. --- auth.py accepts any non-empty password during registration. A single-character password is valid. Add a minimum length check (e.g. 8 chars) in the register endpoint + matching HTML minlength attribute on the form. Also add a test.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
matthias/loggi#122
No description provided.