I created register form in my website.After registration of user I want to immediate login(dont want to show login screen).For that I configured all the thing in admin like unchecked Registration requires email confirmation and Registration requires administrator's approval this also unchecked.from c# code i made user enabled.But after registration its again redirecting to login page only.
Note:After Register I redirecting Thank you page and Its page security property require authentication is No.
For getting this behavior you need to modify your webpart cs file and add the code to login the user.
@samira mirza Thanks for your time.I wrote i.e.AuthenticationHelper.AuthenticateUser(updateUser.UserName, true);
this code for making user as authenticated.but its not working.
Why cannot you use out of the box "Custom Registration Form" web part?
You can achieve your requirement using above web part and check implementation of code for this Web part.
Please, sign in to be able to submit a new answer.