Remove themes from this repo
This commit is contained in:
@@ -69,7 +69,11 @@ func NewIdentificationProvider(cfg *viper.Viper, services *services.ServicesHand
|
||||
|
||||
func (p *IdentificationProvider) Middleware(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
session, _ := p.SessionsStore.Get(r, "parcoursmob_session")
|
||||
fmt.Println("IDP Middleware")
|
||||
session, err := p.SessionsStore.Get(r, "parcoursmob_session")
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
if session.Values["idtoken"] == nil || session.Values["idtoken"] == "" {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user