The default behaviour of the CreateUserWizard is that when it has created the user it logs that new user in.
You might not want this for a few reasons:
- You are in an admin panel and you don't open up your signup's to the public.
- You have some extra coding in place that sends out a verification email before they are let into the system
- You want to review the accounts by hand before you activate them
- Some other mysterious reason
Well the way to prevent it is to add the following attribute to your CreateUserWizard control:
LoginCreatedUser="False"
Its a simple as that - when the newly created user is created they are not logged in.
1 comment :
Nice tip.
Post a Comment