Gossamer Forum
Home : Products : DBMan : Customization :

The script redirects me to the wrong place.

Quote Reply
The script redirects me to the wrong place.
Hello,
I have successfully installed a mod that I found on JPDeni's web site for Secure Password Lookup. The mod seems to work well in all aspects but one.

When I am presented with the login page, I am shown a link which would apparently allow a new password to be mailed to out if the user had forgotten theirs. However, when I press that hyper-link the script directs me back to the exact same login page.

The code that runs this particular function is found in the html.pl script:

Code:
If you have forgotten your password, you may <a href="$db_script_url?db=$db_setup&lookup_form=1">receive another password here.</a>

It appears that the code is mean to direct the user to the "sub html_lookup_form". But for some reason, that page never loads.

What I think is occuring is that somewhere there is an authorization check that is sending me back to the login form. After much searching, however, I was unable to find the code that would be causing this error.

I kindly ask for anyones help in this matter, as I have very little desire to re-install this mod again. I will be working on this error untill it is fixed, so I will respond to your posts as soon as I get them.

Thank you.


------------------
Well that depends what the meaning of "is" is...
Quote Reply
Re: The script redirects me to the wrong place. In reply to
Hmm...That is the correct link. Could you please save your default.cfg, html.pl, and db.cgi files as text files (like default.txt, html.txt, db.txt), and then save them to your server, and then post the URL where we can find the files, so we can look at them.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: The script redirects me to the wrong place. In reply to
I have gone through and replaced the entire email mod, and I think that has done the trick.

I appreciate your help!

dataKing.

[This message has been edited by dataKing (edited October 28, 1999).]
Quote Reply
Re: The script redirects me to the wrong place. In reply to
I put the complete Secure password look up Mod and have the same problem of dataKind, and starting over dosen't do the trick for me.

here is my files, could you look at them?? maybe you see whats going wrong.

www.roldigital.com.ar/cgi-bin/dbman/db_cgi.txt
www.roldigital.com.ar/cgi-bin/dbman/magos_cfg.txt
www.roldigital.com.ar/cgi-bin/dbman/magos_pl.txt

i'm using a lot of mods, all work fine, BUT the sub lookup_form never shows up.

thanks.


[This message has been edited by RolDigital (edited May 05, 2000).]
Quote Reply
Re: The script redirects me to the wrong place. In reply to
First, let me say I love your db setup! The graphics really make it different! Second, I can't read the language but that's ok, the links are still in english Smile. Here is what I have found which should fix the problem:

These lines:
Code:
#esto es el mail-pass-mod
elsif ($in{'lookup_form'}) { &html_lookup_form; }
elsif ($in{'lookup'}) { &lookup; }
should go right BEFORE:
Code:
# Auth Check Password has determined that the user has not logged in, so let's send
# him to the login screen.

So your code will look like this:
Code:
# If we allow users to signup, and they want to, go to the signup form.
elsif ($auth_signup and $in{'signup_form'}) {
&html_signup_form;
}
elsif ($auth_signup and $in{'signup'}) {
&signup;
}
#esto es el mail-pass-mod
elsif ($in{'lookup_form'}) { &html_lookup_form; }
elsif ($in{'lookup'}) { &lookup; }
# Auth Check Password has determined that the user has not logged in, so let's send
# him to the login screen.

I haven't looked at the rest of the mod installation yet but go ahead and try this. The way you have it right now, it is in the wrong part of the IF statement so it never finds elsif ($in{'lookup_form'}) to send you to the E-Mail New Password page.

Hope this helps,
AJ

[This message has been edited by TheFew (edited May 05, 2000).]
Quote Reply
Re: The script redirects me to the wrong place. In reply to
Well, the target of my site, are all spanish speakers fans of ROLE PLAYING GAMES, so, that's why i use this kind of customization, i glad to hear you say is good.

I will try your advice in my question in a few days 'cause the site is growing to fast, and i have to split my time to make all things.

Thanks! (Ilove this forum!!!!!!!! )


------------------
Gustavo.
www.roldigital.com.ar/conjuros/
Quote Reply
Re: The script redirects me to the wrong place. In reply to
Yeap! that solve the problem.

the code was before that, but nor right before. i think that posibility, but i not figure that the order is important.

Thanks again.