User:forgot return - not working?
Posted: 19 March 2008 08:06 AM   [ Ignore ]
Member
Avatar
RankRankRank
Total Posts:  87
Joined  2008-02-26

http://www.solspace.com/docs/entry/user_12_forgot/

I’ve taken the example at the bottom of this page, and whapped it into my site. Obviously what I’m hoping is that when someone submits the form, they get whisked off to the specified page.

It doesn’t seem to be working for me. It goes to the default EE page:

Thank You!

Instructions for resetting your password have just been emailed to you.

xxxx 

And sits there waiting for the punter to click to xxxx which redirects back to home page. The EE page does have the correct URL of http://xxxx:8888/members/password-request though.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK

Profile
 
 
Posted: 19 March 2008 12:28 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Have a look at your URL when you submit the form. Using a return like “template_group/template” in the User module is a relative path, and will add to the URL.

Consider placing an “/“ infront of it and see if that works wink

I apologize for the Docs setting you off in the wrong direction… will fix smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 20 March 2008 04:17 AM   [ Ignore ]   [ # 2 ]
Member
Avatar
RankRankRank
Total Posts:  87
Joined  2008-02-26

My code looks like:

{exp:user:forgot return="/members/password-success"

It’s not a major one, the default EE message can be styled to the same effect.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK

Profile
 
 
Posted: 20 March 2008 06:03 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

So it still shows the EE message template when that is your return?

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 20 March 2008 06:18 AM   [ Ignore ]   [ # 4 ]
Member
Avatar
RankRankRank
Total Posts:  87
Joined  2008-02-26

Yes sir, the URL shows as http://xxxx:8888/members/password-success, but the screen is the EE default.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK

Profile
 
 
Posted: 20 March 2008 06:20 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

I’m assuming you are certain that template path exists?

I wonder if either the template group “members” is conflicting with the native EE settings…. what is your “trigger” member word?
Also, try renaming the template without a dash in the name…. could be an issue for the module. smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 20 March 2008 06:35 AM   [ Ignore ]   [ # 6 ]
Member
Avatar
RankRankRank
Total Posts:  87
Joined  2008-02-26

To double check, I tried changing it to point back at the index page:

{exp:user:forgot return="/index"}
 
<p><input name="email" /></p>
 <
p><input type="submit" value="Send my password" class="button" /></p>
{/exp:user:forgot} 

But it still goes to the EE default.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK

Profile
 
 
Posted: 20 March 2008 07:14 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Try adding this parameter… I wonder if it makes a difference:

form_name="forgotpassword" 

It’s the ONLY difference between my code and yours, and mine works ok… smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 20 March 2008 07:20 AM   [ Ignore ]   [ # 8 ]
Member
Avatar
RankRankRank
Total Posts:  87
Joined  2008-02-26

Nope, not that either! I cannae explain it then, if it works for you - I don’t think I have anything else abnormal…I am saving my templates externally for editing in textmate, though I can’t imagine that’ll make any difference.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK

Profile
 
 
Posted: 20 March 2008 07:27 AM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Unless I’m an idiot… it actually doesn’t seem to be working for me…

Like you said, it builds the URL, but displays the EE message…

Maybe I tested it one late night….


*sigh*

Feature Request time.

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 20 March 2008 07:32 AM   [ Ignore ]   [ # 10 ]
Member
Avatar
RankRankRank
Total Posts:  87
Joined  2008-02-26

You’re an idiot? That’s my job damn it! grin

 Signature 

Andy Harris | Pepper Digital | Malvern, UK

Profile