MCPcopy Index your code
hub / github.com/dnote/dnote / NewLogin

Method NewLogin

pkg/server/controllers/users.go:195–198  ·  view source on GitHub ↗

NewLogin renders user login page

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

193
194// NewLogin renders user login page
195func (u *Users) NewLogin(w http.ResponseWriter, r *http.Request) {
196 vd := getDataWithReferrer(r)
197 u.LoginView.Render(w, r, &vd, http.StatusOK)
198}
199
200// Login handles login
201func (u *Users) Login(w http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls 2

getDataWithReferrerFunction · 0.85
RenderMethod · 0.80

Tested by

no test coverage detected