Redirect aint perfect and username only
This commit is contained in:
@@ -3,6 +3,7 @@ package server
|
||||
import (
|
||||
"local/oauth2"
|
||||
"local/storage"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/google/uuid"
|
||||
@@ -31,6 +32,8 @@ func (s *Server) authorize(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
http.SetCookie(w, cookie)
|
||||
redirectCookie, err := r.Cookie(oauth2.REDIRECT)
|
||||
log.Printf("REDIR COOKIE", err, redirectCookie)
|
||||
log.Println(r.Cookies())
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user