We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

password reset email link fix | Forum

tammy harris
tammy harris Jan 5 '14

go to admin/languages
and search this 
You requested to reset your password
copy and paste this code into the thml password mail

<p>

Dear {$username},<br />

You requested to reset your password.<br />

Follow this link <a href="{$resetUrl}">passwordreset</a>&nbsp;to change your password.</p>

<p>

If the link doesn&#39;t work, please copy and paste this code into your browser.<br />

{$requestUrl}<br />

Then enter this code.<br />

{$code}<br />

If you didn&#39;t request password reset, please ignore this email.<br />

<br />

Thank you, {$site_name}</p>


now to get the code to work go to 
ow_system_plugins/base/bol/user_reset_password_dao.php

At the end of the  php file change this
$example->andFieldGreaterThan(self::EXPIRATION_TS, time());
to this
$example->andFieldGreaterThan(self::EXPIRATION_TS, time() + 3600);

the 3600     = 3600   seconds  which = 1 hour 
so in 1 hour the code will expire, change to more if needed

tammy harris
tammy harris Jan 17 '14
i see this is still not fixed in 1.6 
Pete
Pete Jan 18 '14
You need your cron job setting up proper,on your server ,
Pete
Pete Jan 18 '14

have you done the correct email address in your admin ,you have not made a typo have you ?

 

tammy harris
tammy harris Jan 18 '14
cron works fine and email addy right 
all site mail sends fine just about all works fine 
Pete
Pete Jan 18 '14
:-)
tammy harris
tammy harris Jan 18 '14
i am thinking its a conflicting plugin causing my problem
Pete
Pete Jan 18 '14
just deactivate all your plugins and reactivate one by one and you well soon find out if its a plugin
Pete
Pete Jan 18 '14
mine works ok ,I ask for password reset and I get email  only thing I have to do is copy link and paist it into my browser  http://ukadoptionregister.org/...acca2553d5261d891bc2
tammy harris
tammy harris Jan 18 '14
is ok the code fix above fixed my site and passwords reset working fine
Pete
Pete Jan 18 '14
it wont let you click on it twice if you do it says link Unfortunately you reset code is invalid or expired. Please follow the link and try to reset it again. it worked ok first time I put it into my web browser
Pete
Pete Jan 18 '14
maybe its good it wont let you do it twice so nobody can use code again if your email account gets hacked
Pete
Pete Jan 18 '14
I cant understand why you had to had all that code mine works with out adding any code in admin
tammy harris
tammy harris Jan 18 '14
Quote from Pete maybe its good it wont let you do it twice so nobody can use code again if your email account gets hacked

cool never thought of that pete
tammy harris
tammy harris Jan 18 '14
i dont know just my luck i guess everything i try to do is so dam painful some days i think i would rather pull my own teeth out then deal with it
Pete
Pete Jan 18 '14
What's your website address Tammy ? and I well take alook at your site
Pete
Pete Jan 18 '14
I well sign up and  ask for password reset and see if its working proper on your website for you just to make sure.if you don't want to post your website its ok no problem
The Forum post is edited by Pete Jan 18 '14
tammy harris
tammy harris Jan 18 '14
thanks pete and i have tested like 20 times and all works 
Pete
Pete Jan 18 '14

Quote from Tammy
i dont know just my luck i guess everything i try to do is so dam painful some days i think i would rather pull my own teeth out then deal with it

pmsl   lol
Pete
Pete Jan 18 '14

Quote from Tammy

go to admin/languages

and search this 

You requested to reset your password

copy and paste this code into the thml password mail



<p>

Dear {$username},<br />

You requested to reset your password.<br />

Follow this link <a href="{$resetUrl}">passwordreset</a>&nbsp;to change your password.</p>

<p>

If the link doesn&#39;t work, please copy and paste this code into your browser.<br />

{$requestUrl}<br />

Then enter this code.<br />

{$code}<br />

If you didn&#39;t request password reset, please ignore this email.<br />

<br />

Thank you, {$site_name}</p>





now to get the code to work go to 

ow_system_plugins/base/bol/user_reset_password_dao.php





At the end of the  php file change this

$example->andFieldGreaterThan(self::EXPIRATION_TS, time());

to this


$example->andFieldGreaterThan(self::EXPIRATION_TS, time() + 3600);



the 3600     = 3600   seconds  which = 1 hour 

so in 1 hour the code will expire, change to more if needed

Or you sure if you change this code ,you can only click on link once and nobody else can also use it ,just a thought
Pages: 1 2 3 »