stable

Clone or download

Read-only

feat: Always display a welcome modal

This changes targets the invitees behind a sys_user_approval=1, but will benefit for every users (without invitation, and/or when sys_user_approval=0). On successful login, a first timer is welcomed with a modal. If the user has been invited by another user, then the modal displays this user. Note: the modal is displayed only when user is redirected to /my/ after successful login. Part of request #29614: Invited users shouldn't be mandated to re-confirm their email Change-Id: I78d9879900d1c69f05767f2aee421866c2787e97

Modified Files

Name
M src/common/Dashboard/User/FirstTimerPresenterBuilder.php +16 −30 Go to diff View file
M src/common/Dashboard/User/UserDashboardController.php +1 −1 Go to diff View file
M src/common/InviteBuddy/InvitationDao.php +15 −1 Go to diff View file
A src/common/InviteBuddy/UsedInvitationRetriever.php +29 −0 Go to diff View file
M src/common/User/Account/Register/AfterSuccessfulUserRegistration.php +1 −3 Go to diff View file
M src/common/User/User.class.php +7 −0 Go to diff View file
M src/common/User/UserManager.class.php +2 −0 Go to diff View file
M src/common/dao/UserDao.class.php +20 −2 Go to diff View file
M src/db/mysql/database_structure.sql +1 −0 Go to diff View file
A src/db/mysql/updates/2023/202301231521_add_is_first_timer_column.php +35 −0 Go to diff View file
M src/www/my/index.php +0 −1 Go to diff View file
M tests/lib/Builders/UserTestBuilder.php +6 −0 Go to diff View file
M tests/unit/common/Dashboard/User/FirstTimerPresenterBuilderTest.php +18 −57 Go to diff View file
A tests/unit/common/InviteBuddy/UsedInvitationRetrieverStub.php +46 −0 Go to diff View file
M tests/unit/common/User/Account/Register/AfterSuccessfulUserRegistrationTest.php +1 −1 Go to diff View file
M tests/unit/common/User/UserManagerTest.php +1 −0 Go to diff View file