fix: add configurable minimum password length (#5225)
This commit is contained in:
@@ -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