aboutsummaryrefslogtreecommitdiff
path: root/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handlers.go b/handlers.go
index 4919d33..f53085c 100644
--- a/handlers.go
+++ b/handlers.go
@@ -82,7 +82,7 @@ func handleLogin(ectx echo.Context) error {
username := ctx.FormValue("username")
password := ctx.FormValue("password")
if username != "" && password != "" {
- s, err := ctx.Server.sessions.Put(username, password)
+ s, err := ctx.Server.Sessions.Put(username, password)
if err != nil {
if _, ok := err.(AuthError); ok {
return ctx.Render(http.StatusOK, "login.html", nil)