fix: add configurable minimum password length (#5225)
This commit is contained in:
1 parent
089255997a
commit
464b644adf
21 files changed
+122
-77
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user