User tests: Successful: Unsuccessful:
Because the change to JCrypt::hasStrongPasswordSupport()
to fix its bugs we currently have a non-working remember-me function
In the remember system plugin:
JCrypt::timingSafeCompare()
to compare the $privateKey
from the cookie to the database stored $token
. In the joomla user plugin:
$cryptedKey
instead of $privateKey
into the cookie. Here I am a bit unsure how that was supposed to work prior. It probably was broken before?The privateKey (which is just a random string) is encrypted using JUserHelper::getCryptedPassword()
resulting in the cryptedKey which is now stored both in database and cookie. As far as I understand the system (which is based on http://jaspan.com/improved_persistent_login_cookie_best_practice), the whole encryption isn't needed here and serves no purpose. It's a non-guessable one-time token.
But I may be wrong.
This is a doc explaining how to test the feature back when it was introduced. I think it should still be valid more or less: https://docs.google.com/document/d/1cV3g-11xt3EB2Pi1m1Mej1mcPte2ERDBzacL3UaHJyg
Labels |
Added:
?
?
|
Since @infograf768 found another bug, updated the PR again.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2013-12-15 05:09:21 |
Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32945