11
famc2
i got the same problem
  • 2005/6/7 10:29

  • famc2

  • Just popping in

  • Posts: 3

  • Since: 2004/7/18


mysql Ver 14.7 Distrib 4.1.10, for pc-linux-gnu (i686)
PHP Version 4.3.10

XOOPS VERSION:
XOOPS 2.0.10 Stable updated from 2.0.9.2
"2.0.9.2 was no problem"

when user use their email to get them new password they get "....bring you to former page...and so on"

I turn on Debug mode got this message:
Notice [PHP]: Undefined index: t in file lostpass.php line 41

I found user.php didn't generate the value "t" as www.xoops.org

any one can help me?
thanks a lot

12
ackbarr
Re: i got the same problem

did you try the patch listed in my previous response?

https://xoops.org/modules/newbb/viewtopic.php?topic_id=35769&viewmode=flat&order=ASC&start=0#forumpost155479

13
famc2
Re: i got the same problem
  • 2005/6/8 6:50

  • famc2

  • Just popping in

  • Posts: 3

  • Since: 2004/7/18


first,
I regenerated template system_userform.html.
Because previously version didn't have
<input type="hidden" name="t" value="<{$mailpasswd_token}>" />


I can receive active code mail.

then,
I add a new line in lostpass.php:
$code = isset($_POST['code']) ? trim($_POST['code']) : $code;

after line 51:
$code = isset($_GET['code']) ? trim($_GET['code']) : '';


I think _GET is enough to get code value. But after I add _POST, everything went well.

?????
I don't know why

thank you ackbarr.

BTY, your lostpass.php is different from 2.0.10's final version, I think the final version is better

14
ackbarr
Re: i got the same problem

you are right, it is different. It is a backport of the patch Mithrandir submitted on the XOOPS 2.1 branch to fix the same problem.

Login

Who's Online

180 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 180


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits