diff options
author | FChannel <=> | 2021-01-24 10:59:49 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-24 10:59:49 -0800 |
commit | 895d90f8dd038540e65cf291f003195a0f6bd024 (patch) | |
tree | f8c9dcd4fc735cc1b9dc76866df8215c516abb8f /session.go | |
parent | 2ca021e2c6599b39e6225fdbd449093517a34418 (diff) |
domain routing bug
Diffstat (limited to 'session.go')
-rw-r--r-- | session.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 "", "" } |