aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/login_show.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/login_show.go')
-rw-r--r--ui/login_show.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/login_show.go b/ui/login_show.go
index 890f9db..ea458f4 100644
--- a/ui/login_show.go
+++ b/ui/login_show.go
@@ -14,14 +14,13 @@ import (
"miniflux.app/ui/view"
)
-// ShowLoginPage shows the login form.
-func (c *Controller) ShowLoginPage(w http.ResponseWriter, r *http.Request) {
+func (h *handler) showLoginPage(w http.ResponseWriter, r *http.Request) {
if request.IsAuthenticated(r) {
- html.Redirect(w, r, route.Path(c.router, "unread"))
+ html.Redirect(w, r, route.Path(h.router, "unread"))
return
}
- sess := session.New(c.store, request.SessionID(r))
- view := view.New(c.tpl, r, sess)
+ sess := session.New(h.store, request.SessionID(r))
+ view := view.New(h.tpl, r, sess)
html.OK(w, r, view.Render("login"))
}