سؤال

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.??

هل كانت مفيدة؟

المحلول

You should set LoginCreatedUser to false to disable auto-login.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top