2021-11-22 09:26:30 +00:00
|
|
|
package handler
|
|
|
|
|
|
|
|
|
|
import (
|
2021-12-22 11:04:24 +00:00
|
|
|
"github.com/gorilla/csrf"
|
2021-11-22 09:26:30 +00:00
|
|
|
"net/http"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (h *Handler) showLoginView(w http.ResponseWriter, r *http.Request) {
|
2021-12-22 11:04:24 +00:00
|
|
|
h.renderLayout(w, "login", map[string]interface{}{
|
|
|
|
|
csrf.TemplateTag: csrf.TemplateField(r),
|
|
|
|
|
}, "")
|
2021-11-22 09:26:30 +00:00
|
|
|
}
|