Update dependencies
This commit is contained in:
1 parent
5d18840a2f
commit
3407dbb237
3 files changed
+33
-32
No files matched your search
@@ -14,7 +14,6 @@ import (
|
||||
|
||||
"fornaxian.tech/pixeldrain_api_client/pixelapi"
|
||||
"github.com/Fornaxian/log"
|
||||
"github.com/google/uuid"
|
||||
"github.com/julienschmidt/httprouter"
|
||||
blackfriday "github.com/russross/blackfriday/v2"
|
||||
)
|
||||
@@ -379,7 +378,7 @@ func (wc *WebController) serveNotFound(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func (wc *WebController) getAPIKey(r *http.Request) (key string, err error) {
|
||||
if cookie, err := r.Cookie("pd_auth_key"); err == nil {
|
||||
if _, err := uuid.Parse(cookie.Value); err == nil {
|
||||
if len(cookie.Value) == 36 {
|
||||
return cookie.Value, nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user