[BUGFIX] Prevent saltedpasswords destroying the password
authorXavier Perseguers <xavier@typo3.org>
Tue, 16 Oct 2012 07:09:59 +0000 (09:09 +0200)
committerXavier Perseguers <xavier@typo3.org>
Tue, 16 Oct 2012 07:16:26 +0000 (09:16 +0200)
commit479faef84cf78d1472fe722e8556aae7ba22a7bc
treee075ac5213b5d37e88572d172b6503b996c22cda
parentfb732a873e223a1dedeb0a94efc0f09a6f074127
[BUGFIX] Prevent saltedpasswords destroying the password

When a record is using a plain MD5 password, EXT:saltedpasswords will
destroy the password after the second successive edit.

Add check for already temporarily hashed passwords to prevent that.

Change-Id: I487cbb335616c1d378a704845d5cc96e4ad6cb62
Fixes: #41828
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/15674
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
tests/typo3/sysext/saltedpasswords/classes/eval/class.tx_saltedpasswords_evalTest.php [new file with mode: 0644]
typo3/sysext/saltedpasswords/classes/eval/class.tx_saltedpasswords_eval.php