diff --git a/README.md b/README.md index 0e21806..16442dd 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,18 @@ help_message = Enter your details to create an account. ; Displayed when an account is created. success_message = Your account has been created. Click below to continue to Jellyfin. +[password_validation] +; Enables password validation. +enabled = true +; Min. password length +min_length = 8 +; Min. number of uppercase characters +upper = 1 +; Min. number of numbers +number = 1 +; Min. number of special characters +special = 0 + [email] ; Enable to store provided email addresses, monitor jellyfin directory for pw-resets, and send pin enabled = true diff --git a/data/config-default.ini b/data/config-default.ini index f29996b..9894ffd 100644 --- a/data/config-default.ini +++ b/data/config-default.ini @@ -23,6 +23,18 @@ help_message = Enter your details to create an account. ; Displayed when an account is created. success_message = Your account has been created. Click below to continue to Jellyfin. +[password_validation] +; Enables password validation. +enabled = true +; Min. password length +min_length = 8 +; Min. number of uppercase characters +upper = 1 +; Min. number of numbers +number = 1 +; Min. number of special characters +special = 0 + [email] ; Enable to store provided email addresses, monitor jellyfin directory for pw-resets, and send pin enabled = true diff --git a/data/templates/form.html b/data/templates/form.html index eac866b..784501b 100644 --- a/data/templates/form.html +++ b/data/templates/form.html @@ -10,20 +10,16 @@ Create Jellyfin Account @@ -43,44 +39,126 @@ -
+

Create Account

{{ helpMessage }}

-
-
-
-
- - +

{{ contactMessage }}

+
+
+
+
+
Details
+
+ +
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+
-
- - -
-
- - -
- - -
-
-

{{ contactMessage }}

+