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

+3
View File
@@ -73,6 +73,9 @@ func handle(fn handleFunc, prefix string, store *storage.Storage, server *settin
if status != 0 {
txt := http.StatusText(status)
if status == http.StatusBadRequest && err != nil {
txt += " (" + err.Error() + ")"
}
http.Error(w, strconv.Itoa(status)+" "+txt, status)
return
}