aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/user_create.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/user_create.go')
-rw-r--r--ui/user_create.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/user_create.go b/ui/user_create.go
index 07cd819..b31b0de 100644
--- a/ui/user_create.go
+++ b/ui/user_create.go
@@ -2,12 +2,12 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
-package ui // import "miniflux.app/ui"
+package ui // import "miniflux.app/ui"
import (
"net/http"
- "miniflux.app/http/context"
+ "miniflux.app/http/request"
"miniflux.app/http/response/html"
"miniflux.app/ui/form"
"miniflux.app/ui/session"
@@ -16,11 +16,10 @@ import (
// CreateUser shows the user creation form.
func (c *Controller) CreateUser(w http.ResponseWriter, r *http.Request) {
- ctx := context.New(r)
- sess := session.New(c.store, ctx)
- view := view.New(c.tpl, ctx, sess)
+ sess := session.New(c.store, request.SessionID(r))
+ view := view.New(c.tpl, r, sess)
- user, err := c.store.UserByID(ctx.UserID())
+ user, err := c.store.UserByID(request.UserID(r))
if err != nil {
html.ServerError(w, err)
return