Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

I'm facing an issue with casdoor-go-sdk while trying to disable MFA.

curl --location --request DELETE 'http://localhost:8080/mfa/delete' \
--header 'accept: application/json' \
--header 'Authorization: Bearer TOKEN' \
--header 'Cookie: casdoor_session_id=33d52c14da83ef185e48a348a61df131'

Response

{
    "error": "Failed to delete MFA: unexpected end of JSON input"
}

Code snippet to call delete

// Call Casdoor SDK's Delete method
     // This hits: POST /api/delete-mfa
     err := casdoorClient.Delete(
          user.User.Owner,
          user.User.Name,
     )

Am I missing something here?
Thanks in advance.

2views
2users
1 minread
1 / 2
Oct 2025