stable

Clone or download

Read-only

request #12549: Password reset procedure uses generic Tuleap split token

The goal is to mutualize code between different parts of Tuleap using this pattern. Existing password reset tokens will be considered as invalid, users will be forced to regenerate a new token after the upgrade. The token being short lived (1 hour) that should not be too much of an issue. Change-Id: Iff427672c825b144745a10a66c228b8e84748738

Modified Files

Name
M src/common/User/Password/Reset/Creator.php +18 −20 Go to diff View file
D src/common/User/Password/Reset/InvalidIdentifierException.php +0 −25 Go to diff View file
A src/common/User/Password/Reset/ResetTokenSerializer.php +62 −0 Go to diff View file
D src/common/User/Password/Reset/Token.php +0 −84 Go to diff View file
M src/common/User/Password/Reset/Verifier.php +12 −11 Go to diff View file
D src/common/User/Password/Reset/VerifierIncorrectlyFormattedException.php +0 −25 Go to diff View file
M src/www/account/lostlogin.php +11 −8 Go to diff View file
M src/www/account/lostpw-confirm.php +8 −4 Go to diff View file
A tests/phpunit/common/User/Password/Reset/ResetTokenSerializerTest.php +54 −0 Go to diff View file
M tests/simpletest/common/User/Password/Reset/CreatorTest.php +12 −14 Go to diff View file
D tests/simpletest/common/User/Password/Reset/TokenTest.php +0 −59 Go to diff View file
M tests/simpletest/common/User/Password/Reset/VerifierTest.php +30 −16 Go to diff View file