stable
Clone or download
Read-only
If user tries to register: * when already logged in, redirect to /my/ * when invitation already processed, redirect to login In order to fool psalm unused detection which is raising false-positive UnevaluatedCode errors, calls to `$layout->redirect()` is extracted to dedicated methods. > ERROR: UnevaluatedCode - src/common/User/Account/Register/AfterSuccessfulUserRegistration.php:92:13 - Expressions after return/throw/continue (see https://psalm.dev/084) > return; Part of request #29614: Invited users shouldn't be mandated to re-confirm their email Change-Id: I6a6c079de10cba53f4ce8bcd879bedb28631acfe
Modified Files
Name | ||||
---|---|---|---|---|
M | site-content/fr_FR/LC_MESSAGES/tuleap-core.po | +8 | −0 | Go to diff View file |
M | site-content/pt_BR/LC_MESSAGES/tuleap-core.po | +6 | −0 | Go to diff View file |
M | src/common/Request/RouteCollector.php | +2 | −0 | Go to diff View file |
M | src/common/User/Account/Register/AfterSuccessfulUserRegistration.php | +8 | −3 | Go to diff View file |
M | src/common/User/Account/Register/DisplayRegisterFormController.php | +34 | −1 | Go to diff View file |
M | src/common/User/Account/Register/ProcessRegisterFormController.php | +15 | −1 | Go to diff View file |
A | src/common/User/RetrieveUserByEmail.php | +26 | −0 | Go to diff View file |
M | src/common/User/UserManager.class.php | +2 | −1 | Go to diff View file |
A | tests/lib/Stubs/RetrieveUserByEmailStub.php | +45 | −0 | Go to diff View file |
M | tests/unit/common/User/Account/Register/DisplayRegisterFormControllerTest.php | +77 | −3 | Go to diff View file |
M | tests/unit/common/User/Account/Register/ProcessRegisterFormControllerTest.php | +71 | −3 | Go to diff View file |