NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 04-20-2006 04:22:25

rainbow
Member

Members are unable to retrieve their password.

I recently got my WaxPoteto up and running and if my members are forgetting their password, my oekaki won't let them, because they end up with the error message:

Member name already exists!

Use your browser button to go back.


What could be the problem here? Are there any solutions to this problem?

Additionally, one member already tried to clear their cache and their cookies, but they're still getting problems that their member name already exists.

If so, which of the files do I need to look into and what code do I need to fix?

Last edited by rainbow (04-20-2006 04:47:08)

Offline

#2 04-20-2006 06:06:32

Waccoon
Administrator

Re: Members are unable to retrieve their password.

Member name already exists!

The only place where that error is returned is if they are trying to re-register, not if they are trying to recover a password.

Does password recovery return errors?

Offline

#3 04-20-2006 06:49:56

rainbow
Member

Re: Members are unable to retrieve their password.

Yes. The password recovery does return errors that a member name already existed.

Offline

#4 04-21-2006 06:45:17

Waccoon
Administrator

Re: Members are unable to retrieve their password.

Oh, lovely.  Another legacy bug.

Open up chgpass.php and find this line:

Code:

<input type="submit" name="register" value="Submit" class="submit" />

change it to anything other than "register", such as:

Code:

<input type="submit" name="disabled" value="Submit" class="submit" />

This prevents the registration code from being called before the password change code.

Offline

#5 04-21-2006 14:21:03

rainbow
Member

Re: Members are unable to retrieve their password.

I tried that and I still get that message:

http://ppgrainbow.oekakiart.com/error.p … dy+exists!

Something has gone wrong here. sad

Also typing in the wrong username causes a new username to be created with no e-mail adress being displayed.

How can I prevent this from happening?

It seems that I've been running through all of the trouble since I first installed WaxPoteto.

Last edited by rainbow (04-21-2006 14:29:06)

Offline

#6 04-22-2006 02:32:41

Waccoon
Administrator

Re: Members are unable to retrieve their password.

Also typing in the wrong username causes a new username to be created with no e-mail adress being displayed.

Yes, because the registration code is being called, not the password retrieval code.  Are you sure there's no other references to the word "register" in chngpass.php?

What happened in 5.5.6 is this:

Origianally, OekakiPoteto used an HTTP illegal method for passing data between scripts.  It set up a FORM tag, but used the GET method, a common mistake among web developers:

<form method="post" action="functions.php?action=pchange">

I changed this so a hidden POST tag is used, instead.  However, I didn't realize that the submit button was named "register".  Before, "action=pchange" was set before "register=Submit", and that caused the code to ignore "register".  After I changed it, "register" was set first, and that caused functions.php to run the wrong code.

The fix is to get rid of all references to "register", so "pchange" is the only POST name that is set.  Make sure the main form looks like this (get rid of any CGI data on the action):

<form name="form1" method="post" action="functions.php">

This should already be the case, though.  I changed "register" to "disabled" and the recovery feature works fine for me, now.

Offline

#7 04-22-2006 13:51:12

rainbow
Member

Re: Members are unable to retrieve their password.

I checked the chngpass.php file and there are no other references to the word "register". Yet, I'm *still* getting that "member already exists" error message. Something has got to be wrong in either the chngpass.php file or the functions.php file and it's not supposed to do that.

Offline

#8 04-22-2006 20:37:15

Waccoon
Administrator

Re: Members are unable to retrieve their password.

I found out what was wrong with your index file.  You may send me these files if you like.

Offline

#9 04-22-2006 23:16:08

rainbow
Member

Re: Members are unable to retrieve their password.

I sent you the chngpass.php and function.php files to investigate. After you sent those files and that I implement them and test the lost password function, I'll notify my members that the lost password function is working and that they can retrieve their lost password now.

Offline

#10 04-23-2006 03:28:39

Waccoon
Administrator

Re: Members are unable to retrieve their password.

The problem is with lostpass.php, because it has not been patched to the correct version.  Find these lines:

Code:

<form name="form1" method="post" action="functions.php?action=pretrieve">

<input type="submit" name="register" value="Submit" class="submit" />

change them to:

Code:

<form name="form1" method="post" action="functions.php">

<input type="submit" name="pretrieve" value="Submit" class="submit" />

Bear in mind that a lot of things have changed in 5.5.6.  Some of your files are probably still out of date, so make sure that you've properly updated them *all*.  One important change is that many includes (such as dbconn.php and config.php) have been moved to globals.php.  Make sure they are not being included twice.

Such is the problem with mods.  wink

Offline

#11 04-23-2006 06:13:55

rainbow
Member

Re: Members are unable to retrieve their password.

It works now. I'll e-mail the two people who are unable to retrieve their password to login to change their password incase they lost it. (:

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB