11
netwize
Re: Account re-activation required on Profile email changes
  • 2002/8/6 20:16

  • netwize

  • Just popping in

  • Posts: 89

  • Since: 2002/1/20


perhaps a rc3 hack

12
MaxIT
Re: Account re-activation required on Profile email changes
  • 2002/8/7 11:13

  • MaxIT

  • Just popping in

  • Posts: 65

  • Since: 2002/11/8


Quote:
perhaps a rc3 hack

yes, you're right

I took a look at RC3's edituser.php but it's a lot different from previous version. I still didn't understand the logic. I bet a dev could give a suggest without spending too much time.

13
onokazu
Re: Account re-activation required on Profile email changes
  • 2002/8/7 14:54

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


in edituser.php, change the following line

$email_text = new XoopsFormText("", "email", 30, 60, $xoopsUser->getVar("email"));

to

$email_text = new XoopsFormLabel("", $xoopsUser->getVar("email"));

and around line 190, comment out the following line

$edituser->setVar("email", $email);

so it will look like

//$edituser->setVar("email", $email);

sorry, I have not tested this, but hope this works

14
netwize
Re: Account re-activation required on Profile email changes
  • 2002/8/7 21:10

  • netwize

  • Just popping in

  • Posts: 89

  • Since: 2002/1/20


i got error:

Invalid email

15
MaxIT
Re: Account re-activation required on Profile email changes
  • 2002/8/7 23:48

  • MaxIT

  • Just popping in

  • Posts: 65

  • Since: 2002/11/8


Quote:
Invalid email


do this, too:

change around line 163

$email = $myts->oopsStripSlashesGPC(trim($email));

to

$email = $xoopsUser->getVar("email");

and it will works (tested)

16
netwize
Re: Account re-activation required on Profile email changes
  • 2002/8/8 0:11

  • netwize

  • Just popping in

  • Posts: 89

  • Since: 2002/1/20


it works

thanks ono and max

17
MaxIT
Re: Account re-activation required on Profile email changes
  • 2002/8/8 8:00

  • MaxIT

  • Just popping in

  • Posts: 65

  • Since: 2002/11/8


for lazy people: HERE you can download this hack for RC3

18
maostudio
Re: Account re-activation required on Profile email changes
  • 2002/8/9 18:44

  • maostudio

  • Just popping in

  • Posts: 1

  • Since: 2002/7/12


to MaxIT,

thanks for sharing your hack, yet could u write the installation in Eng?

cuz i really don't know any italian!!
:p

19
MaxIT
Re: Account re-activation required on Profile email changes
  • 2002/8/9 22:01

  • MaxIT

  • Just popping in

  • Posts: 65

  • Since: 2002/11/8


as usual, just copy the content of "html" folder on your root, it will overwrite only 1 file (edituser.php)

20
tywick
Re: Account re-activation required on Profile email changes
  • 2003/6/27 2:27

  • tywick

  • Just popping in

  • Posts: 12

  • Since: 2002/9/17


Quote:

tl wrote:

For security and spams-preventing reasons, it would be extremely useful of requiring account re-activation if a user had modified his/her email address.


A better idea IMHO is do like PayPal and reserve the current email address and it won't change until the new email address is activated.

This will also be nice for reusing the actkey field.

Login

Who's Online

256 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 256


more...

Donat-O-Meter

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

Latest GitHub Commits