aboutsummaryrefslogtreecommitdiff
path: root/http_handle_login.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--http_handle_login.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_login.go b/http_handle_login.go
index 56c0a82..ea1dbae 100644
--- a/http_handle_login.go
+++ b/http_handle_login.go
@@ -16,7 +16,7 @@ import (
)
// httpHandleLogin provides the login page for local users.
-func httpHandleLogin(writer http.ResponseWriter, request *http.Request, params map[string]any) {
+func (s *server) httpHandleLogin(writer http.ResponseWriter, request *http.Request, params map[string]any) {
var username, password string
var userID int
var passwordHash string
@@ -71,7 +71,7 @@ func httpHandleLogin(writer http.ResponseWriter, request *http.Request, params m
}
now = time.Now()
- expiry = now.Add(time.Duration(config.HTTP.CookieExpiry) * time.Second)
+ expiry = now.Add(time.Duration(s.config.HTTP.CookieExpiry) * time.Second)
cookie = http.Cookie{
Name: "session",