Prevent automatic login after Registration

Hello,
I have enabled the Resigtration link in the login page. I also don’t need to verify email. Actually my use case is the following:
Upon Registration a User should be created as disabled.
Admin user verifies the account then enables the user.

The problem is that the user is automatically logged in. Any idea?

Thanks a lot

A workaround to the automatic login, could be
Go to “Authentication”, and in the “flows” drop down choose the registration flow. Copy the registration flow to e.g. registration2. In registration2 add a new execution “Username Password Form” to the end and mark it as required.

Use this flow instead of the default one (In Binding, choose registration2 in the drop down “Registration Flow”)

This shows the login page after the user finishes registration. However the problem is that this approach is not valid when a different login approach e.g. kerberos is used.

Also I still have the issue of creating a user as disabled not solved.

1 Like

do you known same process with email verification. i.e. after email verified user not directly login but instead of redirect to login page.