fix: add configurable minimum password length (#5225)

This commit is contained in:
Henrique Dias authored and GitHub committed 2025-06-28 10:07:34 +02:00
1 parent 089255997a
commit 464b644adf
21 files changed
+122 -77

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@ var signupHandler = func(_ http.ResponseWriter, r *http.Request, d *data) (int,
d.settings.Defaults.Apply(user)
pwd, err := users.HashPwd(info.Password)
pwd, err := users.HashAndValidatePwd(info.Password, d.settings.MinimumPasswordLength)
if err != nil {
return http.StatusInternalServerError, err
}