Hey guys :wave: , i have a setup of kratos (v 0.11...
# ory-selfhosting
b
Hey guys 👋 , i have a setup of kratos (v 0.11), integrated webhook
'after settings'
and it has body as following, is there any way to find field which is getting updated
Copy code
function(ctx) { 
    user_id: ctx.identity.id,
    identity:ctx.identity, 
    ctx: ctx
  }
and configuration is as
Copy code
- hook: web_hook
           config:
              url: web_hook_uri
              method: POST
              body: "base64_of_body"
              auth:
                type: api_key
                config:
                  name: test
                  value: token_goes_here
                  in: header # alternatively cookie
I want to determine/find field that is updated. as our main goal is to trigger email on following actions 1. Password Change 2. 2fa Enabled 3. 2fa Disabled
So far i've found that there is hook configuration for options 1. password 2. profile Still my question remain same that how i can determine from hook that this event is for 2fa enabled or 2fa disabled