chore(webui): finish implementing password reset
All checks were successful
main / main (push) Successful in 1m52s
main / deploy (push) Has been skipped
main / publish (push) Has been skipped

#20
This commit is contained in:
Julien Dessaux 2025-05-02 22:44:16 +02:00
parent 20bc9fe17a
commit 4f68621bad
Signed by: adyxax
GPG key ID: F92E51B86E07177E
9 changed files with 126 additions and 42 deletions

View file

@ -89,7 +89,8 @@ func handleStatesIdPOST(db *database.DB) http.Handler {
action := r.FormValue("action")
switch action {
case "delete":
errorResponse(w, r, http.StatusNotImplemented, err)
errorResponse(w, r, http.StatusNotImplemented, nil)
return
case "edit":
statePath := r.FormValue("path")
parsedStatePath, err := url.Parse(statePath)
@ -128,7 +129,7 @@ func handleStatesIdPOST(db *database.DB) http.Handler {
}
state.Lock = nil
default:
errorResponse(w, r, http.StatusBadRequest, err)
errorResponse(w, r, http.StatusBadRequest, nil)
return
}
render(w, statesIdTemplate, http.StatusOK, StatesIdPage{