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

Hello everyone, I'm new on Casdoor. I've been playing around with Rust, and I kind of enjoy it! One thing that makes me wonder is why Casdoor doesn't use Http Status properly. Example:
On POST api/login, instead of returning 401 when the credentials are wrong, I get 200 with the following body:

{
  "status": "error",
  "msg": "password or code is incorrect, you have 3 remaining chances",
  "sub": "",
  "name": "",
  "data": null,
  "data2": null
}

This makes my life harder cuz I'll have to build some middleware that filters the body by status to check whether the request was successful