chore(webui): rewrite the web session code again while preparing for csrf tokens
#60
This commit is contained in:
parent
3bb5e735c6
commit
895615ad6e
20 changed files with 162 additions and 149 deletions
|
@ -1,6 +1,7 @@
|
|||
package webui
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"html/template"
|
||||
"net/http"
|
||||
|
||||
|
@ -35,7 +36,7 @@ func handleAccountsIdGET(db *database.DB) http.Handler {
|
|||
return
|
||||
}
|
||||
if account == nil {
|
||||
errorResponse(w, r, http.StatusNotFound, err)
|
||||
errorResponse(w, r, http.StatusNotFound, fmt.Errorf("The account Id could not be found."))
|
||||
return
|
||||
}
|
||||
statePaths, err := db.LoadStatePaths()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue