Skip to content

Commit 782a7d9

Browse files
committed
feat: Add length validation for superuser password
1 parent 366eb58 commit 782a7d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

copier.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ first_superuser:
2323

2424
first_superuser_password:
2525
type: str
26-
help: The password of the first superuser (in .env)
26+
help: The password of the first superuser (in .env). Must be at least 8 characters.
2727
default: changethis
28+
validator: "{% if first_superuser_password|length < 8 %}Password must be at least 8 characters long.{% endif %}"
2829

2930
smtp_host:
3031
type: str

0 commit comments

Comments
 (0)