From 895d90f8dd038540e65cf291f003195a0f6bd024 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Sun, 24 Jan 2021 10:59:49 -0800 Subject: domain routing bug --- session.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'session.go') diff --git a/session.go b/session.go index 3478802..0867b16 100644 --- a/session.go +++ b/session.go @@ -86,5 +86,9 @@ func GetPasswordFromSession(r *http.Request) (string, string) { parts := strings.Split(token, "|") - return parts[0], parts[1] + if len(parts) > 1 { + return parts[0], parts[1] + } + + return "", "" } -- cgit v1.2.3