开发者

"DisableCreatedUser" is not working properly

开发者 https://www.devze.com 2023-04-09 22:24 出处:网络
I am using 开发者_StackOverflow社区a ASP.NET CreateUserWizard to registering users. I wanted user to not automatically log after registration until they login manually.

I am using 开发者_StackOverflow社区a ASP.NET CreateUserWizard to registering users. I wanted user to not automatically log after registration until they login manually.

    <asp:CreateUserWizard ID="RegisterUser" runat="server" EnableViewState="false" RequireEmail="false"
DisableCreatedUser="true" LoginCreatedUser="false" OnCreatedUser="RegisterUser_CreatedUser">

In here I have set the DisableCreatedUser="true" and LoginCreatedUser="false" in order to not logged the user after registration until they logged in as CreateUserWizard.DisableCreatedUser Property describes.

Any ideas about the reason this settings not working will be appreciate.

Thanks


I did that by adding FormsAuthentication.SignOut() in the OnCreatedUser. that works !!!

0

精彩评论

暂无评论...
验证码 换一张
取 消