I found this method FormsAuthentication.Authenticate but I cannot access Username Textbox and what about encrypted password? Am I supposed to do it manually?
I have put following code in createduser and creatinguser: TextBox txtEmail1 = (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("UserName"); TextBox txtPassword1 = (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("Password"); FormsAuthentication.Authenticate(txtEmail1.Text, txtPassword1.Text);
After those three lines user is still null: NopContext.Current.User == null
Thanks for the reply! It was a part of the solution, I also had to add: 1) FormsAuthentication.SetAuthCookie(userNameTextBox.Text,false); in usercreated method 2) ContinueDestinationPageUrl="~/xxx.aspx" in customerregister.ascx
Thank you very much!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.