| Date: | 2009-07-02 20:04:46 (1 year 2 months ago) |
|---|---|
| Author: | Loïc d'Anterroches |
| Commit: | 32507085b40b2aa9cef30212f84dbeea1e830e22 |
| Message: | Added another level of check on the reset password key. |
| Files: |
src/IDF/Form/PasswordInputKey.php (1 diff) |
Change Details
| src/IDF/Form/PasswordInputKey.php | ||
|---|---|---|
| 95 | 95 | return false; |
| 96 | 96 | } |
| 97 | 97 | $cr = new Pluf_Crypt(md5(Pluf::f('secret_key'))); |
| 98 | return split(':', $cr->decrypt($encrypted), 3); | |
| 98 | $f = split(':', $cr->decrypt($encrypted), 3); | |
| 99 | if (count($f) != 3) { | |
| 100 | return false; | |
| 101 | } | |
| 102 | return $f; | |
| 99 | 103 | } |
| 100 | 104 | } |
