(w http.ResponseWriter, r *http.Request, code int)
| 588 | } |
| 589 | |
| 590 | func (h *WebUiHandler) sendLoginPage(w http.ResponseWriter, r *http.Request, code int) { |
| 591 | |
| 592 | loginData := LoginData{ |
| 593 | Head: h.headHtml, |
| 594 | } |
| 595 | |
| 596 | w.WriteHeader(code) |
| 597 | err := h.tmpl.ExecuteTemplate(w, "login.tmpl", loginData) |
| 598 | if err != nil { |
| 599 | w.WriteHeader(500) |
| 600 | io.WriteString(w, err.Error()) |
| 601 | return |
| 602 | } |
| 603 | } |
| 604 | |
| 605 | func (h *WebUiHandler) handleUsers(w http.ResponseWriter, r *http.Request, tokenData TokenData, user User) { |
| 606 |
no outgoing calls
no test coverage detected