MCPcopy Create free account
hub / github.com/boringproxy/boringproxy / sendLoginPage

Method sendLoginPage

ui_handler.go:590–603  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request, code int)

Source from the content-addressed store, hash-verified

588}
589
590func (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
605func (h *WebUiHandler) handleUsers(w http.ResponseWriter, r *http.Request, tokenData TokenData, user User) {
606

Callers 2

handleWebUiRequestMethod · 0.95
handleLoginMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected