Skip to content

Commit

Permalink
allow 2-letter usernames :)
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed May 11, 2023
1 parent 1ea35ba commit 8eef292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class LoginRequestModel(RequestModel):
...,
title="Username",
example="admin",
regex=r"^[a-zA-Z0-9_\-\.]{3,}$",
regex=r"^[a-zA-Z0-9_\-\.]{2,}$",
)
password: str = Field(
...,
Expand Down

0 comments on commit 8eef292

Please sign in to comment.