mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
fix(http): remove auth query parameter
This commit is contained in:
parent
b8f64a1c1b
commit
57db25d08a
1 changed files with 0 additions and 5 deletions
|
|
@ -51,11 +51,6 @@ func (e extractor) ExtractToken(r *http.Request) (string, error) {
|
|||
return token, nil
|
||||
}
|
||||
|
||||
auth := r.URL.Query().Get("auth")
|
||||
if auth != "" && strings.Count(auth, ".") == 2 {
|
||||
return auth, nil
|
||||
}
|
||||
|
||||
if r.Method == http.MethodGet {
|
||||
cookie, _ := r.Cookie("auth")
|
||||
if cookie != nil && strings.Count(cookie.Value, ".") == 2 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue