brash-librarian-74886
01/30/2025, 10:08 AM{
csrf_token: csrf_token,
method: "profile",
traits: {
last_name: "",
....more fields
}
}
will just update the fields in traits
and keep last_name
with an empty string.
However, if I send
{
csrf_token: csrf_token,
method: "profile",
traits.last_name: "",
...more fields
}
kratos will completely remove last_name
from traits
🤯
I find it hard to believe that this is an expected behaviour but I’d like to double check with you 🙏 I’m happy to maybe help with a fix for this (I’m not a Go expert and I’m not super familiar with Kratos source code) if you give me some tips about where to look. Thanks!!brash-librarian-74886
01/30/2025, 10:58 AM&p
after decoding is not holding them, making Kratos update incorrectly the identity traitsbrash-librarian-74886
01/30/2025, 12:03 PMory/x
decoder are responsible for the behaviour https://github.com/ory/x/blob/master/decoderx/http.go#L504-L506