hello all, how to disable automatic login after su...
# talk-kratos
k
hello all, how to disable automatic login after successful registration? I cannot find the setting...
b
Selfhosted kratos or Ory Network?
To disable automatic login after successful registration, you need to remove the
session
hook from the
after
registration flow. Here are the steps to do that: 1. First, list all configured hooks for the
after
registration method:
Copy code
ory get identity-config {project_id} \
--format=jsonpath='selfservice.flows.registration.after'
2. Check the JSON output and identify the array index of the
session
hook. 3. Remove the hook by passing the hook index in the command:
Copy code
ory patch identity-config {project_id} \
--remove '/selfservice/flows/registration/after/hooks/{hook_index}'
Replace
{project_id}
with your project ID and
{hook_index}
with the index of the
session
hook. For more information, refer to the Ory documentation.
k
@bland-eye-99092 Thank you! selfhosted, commenting out
after.passwords.hooks.hook:session
seems to work! 🙂