Can i change verify flow? #3447
-
hello i am just learning and using duck ory-kratos to use our services. Our service requires email verification before user registration. We need to allow users to sign up only when they have verified their email. I found verify email step docs, but it seems to be verify email after sign up. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @GoodGoodJM Ory Kratos does indeed support email verification, but it typically happens after the user has signed up. When a user signs up, if verification is enabled, Ory Kratos starts the verification process automatically. Users can also verify their addresses manually. The verification flow is supported in both browsers and API clients. If you want to allow only the users with a verified email to sign in, you can follow these steps: Either: Or:
Note: This is for Ory Network, if you are self-hosting edit the configuration directly. For more information see the hooks configuration documentation. Please note that this configuration will require users to verify their email address before they can log in, not before they can sign up. If you want to enforce email verification before sign up, you might need to implement a custom solution using Ory Actions. See this example of Ory Action to check IP addresses against VPN and Fraud detection services. |
Beta Was this translation helpful? Give feedback.
Hello @GoodGoodJM
I'm glad to hear that you're enjoying using Ory Kratos!
Ory Kratos does indeed support email verification, but it typically happens after the user has signed up. When a user signs up, if verification is enabled, Ory Kratos starts the verification process automatically. Users can also verify their addresses manually. The verification flow is supported in both browsers and API clients.
If you want to allow only the users with a verified email to sign in, you can follow these steps:
Either:
Go to Authentication → Email Verification in the Ory Console and enable Require Verified Address for Login.
Or: