Conditional NEXTURL parameter in reset password link in User Password Reset Auto Responder

Options
In the User Password Reset Auto Responder I'd like to be able to use a conditional to set the NEXTURL parameter in the reset password link based on the referrer. We're using S120:ar:resetPasswordLink for the link in the email and I'd like to be able to send the user back to where they came from. The ChangeUserPassword form will accept the NEXTURL parameter.

Any idea how to do this?
Tagged:

Comments

  • Matthew Smith:

    In the User Password Reset Auto Responder I'd like to be able to use a conditional to set the NEXTURL parameter in the reset password link based on the referrer. We're using S120:ar:resetPasswordLink for the link in the email and I'd like to be able to send the user back to where they came from. The ChangeUserPassword form will accept the NEXTURL parameter.

    Any idea how to do this?

    Well, you can get the referring page with S50.


    https://www.blackbaud.com/files/support/helpfiles/luminate-online/help/luminateonline.html#../Subsystems/S-Tags/Content/S-Tags/S50_HTTP_Request_Header.html?Highlight=s50


    But you are saying this link is in an autoresponder email? In that case the referrer will be blank, unless it was a webmail client.
  • Brian Mucha:

    Matthew Smith:

    In the User Password Reset Auto Responder I'd like to be able to use a conditional to set the NEXTURL parameter in the reset password link based on the referrer. We're using S120:ar:resetPasswordLink for the link in the email and I'd like to be able to send the user back to where they came from. The ChangeUserPassword form will accept the NEXTURL parameter.

    Any idea how to do this?

    Well, you can get the referring page with S50.


    https://www.blackbaud.com/files/support/helpfiles/luminate-online/help/luminateonline.html#../Subsystems/S-Tags/Content/S-Tags/S50_HTTP_Request_Header.html?Highlight=s50


    But you are saying this link is in an autoresponder email? In that case the referrer will be blank, unless it was a webmail client.



    In the password reset auto responder email there's a link that takes you to the ChangeUserPassword form. So the link in the email is something like

    https://secure2.convio.net/xxx/site/ChangeUserPassword?params

    I'd like to be able to add the NEXTURL param onto this URL and customize the NEXTURL depending on where the user is coming from.

    So if the user is trying to reset their password to use section A of the website the link in the password auto responder email could be something like:

    https://secure2.convio.net/xxx/site/ChangeUserPassword?NEXTURL=pageA

    or if they are using section B it would be:

    https://secure2.convio.net/xxx/site/ChangeUserPassword?NEXTURL=pageB


    The problem we are having is that people are getting lost because there is only one password reset email but more than one thing a user could be doing when they try to reset their password.
  • Oh, now I see.


    I've never heard of a way to control the link that the change password email sends.


    If you think about it, the only way would be on the Forgot Password form/page. There is a hidden field on that page named nextURL, so I would try to change that value and see what happens. I suspect that will change where you go after clicking submit, rather than where you go after actually changing your password via the email link.
  • I tried that and it didn't work. Does anyone else have this problem where you'd like to direct the user to a specific page based on context after a password reset?

    Thanks for thinking about it and offering a suggestion Brian!
  • I also couldn't think a way for using the NEXTURL approach in this case, but how about have the "reset password" open in a new window / tab so by doing that one would still retain the original page where they are currently in if they so wanted to "go back" to where they are. Not ideal, but could diminish the frustration hopefully.


    regards,

    Daniel


    EDIT ADD ON:

    This is also because NEXTURL works in tandem with the login form as to redirect upon successful login to either where you were or to a logged in only restricted page, instead of the "reset password" form where the system doesn't necessarily redirect you to the location you wanted to go because you still have to do the reset password steps (i.e. Send Password, or Send Username first if you forgot the username as well, etc) which is on separate page / location -- that makes retaining "where you are originally" location wise bit not straightforward. -- just like what Brian has similarly stated.


    Matthew Smith:

    I tried that and it didn't work. Does anyone else have this problem where you'd like to direct the user to a specific page based on context after a password reset?

    Thanks for thinking about it and offering a suggestion Brian!

  • In one scenario, our custom program registration system, I use a custom form with ajax and curl to submit our send password reset form (https://secure2.convio.net/mas/site/UserLogin) so the user doesn't see that form at all.

    They don't have to visit the Convio forms until they click on the link in the reset password email. If I was able to set the NEXTURL param in the url of the reset password email they would only have to visit one Convio form and then they'd return to our custom registration system when they finished resetting their password.

    This is a major point of confusion for users. Regardless of where the user starts the password reset they end up in the same place. In our case we have three starting points, our custom registration system, Team Raiser, or our standard donation forms.

Categories