Custom Login page

Mahesh Joshi asked on August 21, 2015 08:17

We have used Logon form web part under Membership and built new web part for custom login section in Kentico 8.0.But when user use the cmsdesk url with retuenurl parameter , after login it is not redirecting to the returnurl where user was as like normal kentico Native login. Please help me about this issue.

Recent Answers

Suneel Jhangiani answered on August 21, 2015 11:06

You may need to post some of your code for us to be able to help you as it would depend on the methods you are using. However, if you look at the LogonForm web part (under the memberships folder), you will see that Kentico Redirects the user once they are LoggedIn. They use the standard ASP.Net login control and hence have attached to the events that associated with that. Therefore, if you use a custom login control you will need to see the method to add the URL Redirect to (obviously should be easy as it would be after you have validated that the user is LoggedIn).

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on August 21, 2015 21:36

Add checking for returnurl query string parameter and perform appropriate redirect in your custom web part.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.