Password change directing back to home page instead of requested page.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
6/27/2012 11:52:25 AM
Gravatar
Total Posts 8

Password change directing back to home page instead of requested page.

Hello,

We just built a secured area for some new users and we are wondering if we have come across a bug.  The new users were created by me and I require them to change their password.  If we e-mail them a direct link to the secured URL they are first redirected to the login page and required to change their password when they log in for the first time.  Once they change their password it directs them to the home page instead of to the URL they originally requested.  This is potentially confusing for new users so I'm wondering if this can be changed to direct them to the requested URL instead of back to the home page.  Thanks for your help.

Tim

6/27/2012 12:03:30 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Password change directing back to home page instead of requested page.

Since you're sending them a link to the secure page, format the link like the following and it will prompt them to login, if necessary, and then direct them on to the target page. If they are already logged in, it should bypass the login screen and go straight to the target page.

https://mysite.com/Secure/Login.aspx?returnurl=https://my_secure_page.aspx

Jamie

6/27/2012 12:33:15 PM
Gravatar
Total Posts 18439

Re: Password change directing back to home page instead of requested page.

I don't think that will solve it because just sending the CMS page url does the same thing, if the page requires a role and the user is not authenticated it redirects to login and passes its own url as the return url. But after that once the user is signed in while he is redirected to the requested page, the basepage detects that he must change his password and redirects to the password reset page which doesn't know about the previous return url. 

I've just fixed this in my copy so that when we redirect to password reset page we pass the current requested url as the return url and now password reset will use this param and redirect as needed. I just tested the fix in my copy and it worked well, so this will be fixed in the next release.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.