magnificent-oxygen-19823
10/09/2024, 11:37 AMmagnificent-oxygen-19823
10/09/2024, 11:50 AMhook: require_verified_address
under login in our template.yamlmagnificent-energy-493
magnificent-oxygen-19823
10/11/2024, 10:09 AMgray-library-49237
10/12/2024, 12:56 AMIf we make verify email compulsory after sign-up; seems like we have to login after verification. Can this be avoided
yes, just make sure to have the session
hook configured. like this.gray-library-49237
10/12/2024, 12:57 AMmagnificent-oxygen-19823
10/12/2024, 9:41 AMmysterious-rose-40371
10/18/2024, 1:48 PM- hook: show_verification_ui
- hook: session
And we wouldn't need the hook: require_verified_address
anymore ?
If still needed, in which order should we have them ?
Thank you again!mysterious-rose-40371
10/18/2024, 2:41 PM- hook: require_verified_address
is in the login
section, let me try this first pleasemysterious-rose-40371
10/18/2024, 3:04 PMlogin:
after:
hooks:
- hook: require_verified_address
and
registration:
after:
password:
hooks:
- hook: show_verification_ui
- hook: session
And honestly we come close to what what we want, with one problem though:
=> At login page=> If user is not verified, they cannot log in ✅
=> At registration => We show verification step + automatically log in at the end of the flow ✅
=> At registration => We show verification step, but user can decide to ignore the verification step and go back to the app, and they will be logged in regardless ❌ (here, we don't want the user to be logged in if they haven't completed the verification process)
Do you happen to know how we could handle that one last scenario so that the user simply is NOT logged in during registration if they haven't completed the verification process ?
Thanks again!!
fyi @magnificent-oxygen-19823gray-library-49237
10/18/2024, 3:24 PMselfServiceAfterRegistrationMethod": {
"type": "object",
"additionalProperties": false,
"properties": {
"default_browser_return_url": {
"$ref": "#/definitions/defaultReturnTo"
},
"hooks": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/selfServiceSessionIssuerHook"
},
{
"$ref": "#/definitions/selfServiceWebHook"
},
{
"$ref": "#/definitions/selfServiceShowVerificationUIHook"
},
{
"$ref": "#/definitions/b2bSSOHook"
}
]
},
"uniqueItems": true,
"additionalItems": false
}
gray-library-49237
10/18/2024, 3:24 PMgray-library-49237
10/18/2024, 3:26 PMmysterious-rose-40371
10/18/2024, 3:28 PMgray-library-49237
10/18/2024, 3:49 PMmysterious-rose-40371
10/18/2024, 3:50 PM