joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[5.2] Separate activation from resetToken

Open Arpit-24 opened this issue 5 years ago • 21 comments

Pull Request for Issue #24269 .

Summary of Changes

Added new column of resetToken to users table. Reset token expires after 3 days The issue originally for 3.9 also existed in 4.0

Testing Instructions

Please refer to the original issue for details.

Arpit-24 avatar Apr 02 '19 22:04 Arpit-24

I have tested this item :white_check_mark: successfully on 3f1645c20bc2b4961534787f110204ccaeab6e86

Tested this successfully.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24461.

Kaustubharas avatar Oct 19 '19 06:10 Kaustubharas

I have tested this item :white_check_mark: successfully on 3f1645c20b

ahghatol avatar Oct 19 '19 07:10 ahghatol

I doubt the change in the template is intentional ;) also, seems like a very convoluted way to determine if the resettoken is > 3 days? wouldn't now - date > (24 * 3600) * 3 be simpler to check? Do I also read it correct that now if you have an activationToken, you can never complete the reset process?

euismod2336 avatar Oct 19 '19 14:10 euismod2336

I have tested this item :white_check_mark: successfully on 3f1645c20bc2b4961534787f110204ccaeab6e86

From #JMAD19 PBF

This PR already has two tests on the same commit ... but the system is counting only one....

I'm retesting it and making it count... it has 3 tests now.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24461.

anibalsanchez avatar Nov 15 '19 18:11 anibalsanchez

@Arpit-24 can you solve conflict please

alikon avatar Nov 15 '19 18:11 alikon

@Arpit-24 can you solve conflict please

Made the required changes

Arpit-24 avatar Nov 16 '19 08:11 Arpit-24

you need to add that new field resetToken on installation too

alikon avatar Nov 16 '19 19:11 alikon

@Arpit-24 Can you fix the conflicts once more please?

roland-d avatar Aug 01 '20 16:08 roland-d

@Arpit-24 Please add new field to \installation\sql\mysql\base.sql and \installation\sql\postgresql\base.sql. Thanks.

Quy avatar Aug 11 '20 22:08 Quy

I have tested this item :white_check_mark: successfully on 602056ca1e52b5cb623ca4c5708e1091e0506fb0


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24461.

tushar33 avatar Oct 17 '20 09:10 tushar33

I have tested this item :white_check_mark: successfully on 602056ca1e52b5cb623ca4c5708e1091e0506fb0

Now the only thing missing is the possibility to set the expiration time for the token to the minute instead of having hardcoded 3 days.

I also think it would be a good practice to delete the reset token after confirmation and forwarding to the password change form, so that it can be used only once.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24461.

degobbis avatar Oct 17 '20 13:10 degobbis

@Arpit-24 Please add new field to \installation\sql\mysql\base.sql and \installation\sql\postgresql\base.sql. Thanks.

This is still to be done, it seems.

richard67 avatar Oct 17 '20 16:10 richard67

@Arpit-24 can you review the comments on this PR?

drmenzelit avatar Dec 02 '21 10:12 drmenzelit

@Arpit-24 I've updated the branche to 4.1, because I think the idea behind this PR is not bad.

Probabla you could clean up the PR (like using DateTime classes for handling diffs etc) and we give it another go?

bembelimen avatar Jan 22 '22 09:01 bembelimen

The update SQL scripts would need a rename so they have the right version 4.1 and a newer date than the latest one which is already in the 4.1-dev branch, for example rename them from "4.0.0-2021-03-15.sql" to "4.1.0-2022-01-22.sql".

richard67 avatar Jan 22 '22 09:01 richard67

@Arpit-24 any intention to add the feedback?

laoneo avatar Apr 06 '22 09:04 laoneo

This pull request has automatically rebased to 4.2-dev.

HLeithner avatar Jun 27 '22 13:06 HLeithner

This pull requests has been automatically converted to the PSR-12 coding standard.

joomla-bot avatar Jun 27 '22 21:06 joomla-bot

This pull request has been automatically rebased to 5.1-dev.

HLeithner avatar Sep 30 '23 22:09 HLeithner

I have tested this item :white_check_mark: successfully on f1012435da80c86a61bac8f84521f882880e4fab

Tested successfully


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24461.

emedinainnotec avatar Oct 05 '23 18:10 emedinainnotec