aboutsummaryrefslogtreecommitdiff
path: root/session.go
diff options
context:
space:
mode:
Diffstat (limited to 'session.go')
-rw-r--r--session.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/session.go b/session.go
index b2af357..fd29a01 100644
--- a/session.go
+++ b/session.go
@@ -92,26 +92,3 @@ func GetPasswordFromSession(r *http.Request) (string, string) {
return "", ""
}
-
-func GetPasswordFromCtx(r *fiber.Ctx) (string, string) {
-
- c := r.Cookies("session_token")
-
- sessionToken := c
-
- response, err := cache.Do("GET", sessionToken)
-
- if CheckError(err, "could not get session from cache") != nil {
- return "", ""
- }
-
- token := fmt.Sprintf("%s", response)
-
- parts := strings.Split(token, "|")
-
- if len(parts) > 1 {
- return parts[0], parts[1]
- }
-
- return "", ""
-}