casdoor / casdoor-go-sdk

Go client SDK for Casdoor
https://github.com/casdoor/casdoor
Apache License 2.0
88 stars 74 forks source link

Wrong data returned for application #142

Closed hamidrabedi closed 2 hours ago

hamidrabedi commented 2 hours ago

I'm retrieving the application:

client.GetApplication(client.ApplicationName)

Now i'm getting this response for providers:

app, _ := client.GetApplication(client.ApplicationName)
for i, existingProviderItem := range app.Providers {
    fmt.Println(existingProviderItem)
}

&{ 004b2f3d-a26d-437b-aef2-209d9d118bd7-Captcha false true true false  Always 0xc000181408}
&{ 004b2f3d-a26d-437b-aef2-209d9d118bd7-SMS false true true false  all 0xc000181908}
&{ 004b2f3d-a26d-437b-aef2-209d9d118bd7-SMS false true true false  all 0xc000181908}

As you can see the last 2 are duplicate, this is what I have: image

The thing is that second one here is a default captcha provider and its admin(shared), I don't know whats happening here at all.

hamidrabedi commented 2 hours ago

nvm, i was doing some creazy stuff