diff options
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 "", "" } |