Can you trigger a kratos action on a failed login?
# general
c
Can you trigger a kratos action on a failed login?
m
Hello @calm-farmer-87562 (hope I ping the right one 😅 ) We have an event now for "LoginInitiated": https://www.ory.sh/docs/actions/live-events This is at the moment only available in Ory Network and it's not directly integrated with Ory Actions. But you could build some custom integration that triggers whenever this event occurs.
c
is there a way to do it with self hosted?
m
Sure you can use the built-in logging https://www.ory.sh/docs/self-hosted/operations/logging Ofc it is not 1:1 the same thing but the building blocks are there!
c
resurrecting this. ok so, I actually need it to do something after a login fails. specifically triggering another service to go search for an account in another system. ideally it would be failed login -> trigger hook -> external system takes failed login email, looks to see if it exists in another system -> creates a new identity in kratos -> redirects to password reset page is there any way to accomplish this?