You should set LoginCreatedUser to false to disable auto-login.
newly created user automatically logged in ASP.NET
-
30-06-2022 - |
Question
I am using the create user wizard in asp.net from the admin privileges. i.e only admin can create a user.
I am creating a new user with a role assigned to it.
As soon as the user is created , it is automatically logged in with always 'admin' as the role (first in the option of dropdownlist of role) inspite of whatever other role i select.
I do not want the newly created user to be logged in automatically.
How to do it.??
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow