stable

Clone or download

Read-only

feat: Convert register form to BurningParrot

Follow-up to git #tuleap/stable/2e0e44a2434c5f2d50ac2cc432019c5f9d74993a When a user register a new account, the form is now displayed with BurningParrot. Likewise, when a site admin create a new user, the form is also displayed with BurningParrot. No functional changes in password robustness, or captcha plugin. This contribution only targets the steps "H" in the flow chart below. ```mermaid graph TD A[Register] --> B{Captcha <br>ok?} B -->|no| F B -->|yes| D(Create account) D --> E{Account <br>created?} E -->|no| F[Errors!] E -->|yes| G(OIDC link registering account) F --> H[fa:fa-star Display register form] H --> A G --> I{User created <br> by site admin?} I -->|yes| J{Should send <br>an email?} J -->|no| R J -->|yes| K(Send email to user with login and pwd fa:fa-bomb) I -->|no| L{sys_user_approval = 0?} L -->|no| M[fa:fa-star Your account has been created<br>it must be approved by an administrator<br>Once approved clic the confirm button in this email] L -->|yes| Q(Send confirmation email fa:fa-bomb) Q --> O[fa:fa-star Your account is created, </br>it now needs to be activated.<br>To do this clic the confirm button in the email] K --> R[fa:fa-star The user account was created.<br>Please note the login and pwd] style H fill:#f4f8e9,stroke:#6abf1d,color:#137900 style R fill:#f4f8e9,stroke:#6abf1d,color:#137900 style M fill:#f4f8e9,stroke:#6abf1d,color:#137900 style O fill:#f4f8e9,stroke:#6abf1d,color:#137900 ``` Implementation notes: For now code is kept in register.php, it will be moved in a dedicated DispatchableWithBurningParrot controller in a dedicated contribution. Part of request #29605: Convert account registration pages to BurningParrot Change-Id: Ib4e9a3edc1eb5ae63d8c1258a4b0a683f5dbdf81

Modified Files

Name
M lib/frontend/tlp-popovers/src/popovers.ts +40 −3 Go to diff View file
M plugins/captcha/include/captchaPlugin.php +18 −31 Go to diff View file
M plugins/captcha/themes/style.scss +3 −1 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +26 −23 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +21 −19 Go to diff View file
M src/common/Event/Event.class.php +0 −9 Go to diff View file
A src/common/User/Account/Register/AddAdditionalFieldUserRegistration.php +58 −0 Go to diff View file
M src/common/User/Account/templates/security/password.mustache +8 −6 Go to diff View file
M src/common/account/RegisterByAdminPresenter.class.php +6 −8 Go to diff View file
M src/common/account/RegisterByUserPresenter.class.php +2 −2 Go to diff View file
M src/common/account/RegisterPresenter.class.php +1 −4 Go to diff View file
M src/scripts/main/src/account/check-pw.ts +9 −10 Go to diff View file
D src/scripts/main/src/account/generate-pw.ts +0 −58 Go to diff View file
M src/scripts/main/webpack.common.js +0 −1 Go to diff View file
A src/scripts/register/package.json +17 −0 Go to diff View file
A src/scripts/register/pnpm-lock.yaml +9 −0 Go to diff View file
A src/scripts/register/src/index.ts +88 −0 Go to diff View file
A src/scripts/register/tsconfig.json +12 −0 Go to diff View file
A src/scripts/register/vite.config.ts +45 −0 Go to diff View file
M src/templates/account/register-admin.mustache +107 −84 Go to diff View file
D src/templates/account/register-choose-email.mustache +0 −3 Go to diff View file
M src/templates/account/register-choose-password.mustache +14 −7 Go to diff View file
M src/templates/account/register-form-end.mustache +6 −3 Go to diff View file
M src/templates/account/register-form-start.mustache +25 −43 Go to diff View file
M src/templates/account/register-purpose-directions.mustache +12 −6 Go to diff View file
M src/templates/account/register-user.mustache +97 −57 Go to diff View file
M src/templates/account/timezone.mustache +2 −2 Go to diff View file
M src/templates/admin/users/user-change-password.mustache +7 −5 Go to diff View file
M src/themes/BurningParrot/css/account-registration/account-registration.scss +29 −0 Go to diff View file
M src/themes/FlamingParrot/css/utils/_definitions.scss +0 −1 Go to diff View file
M src/themes/FlamingParrot/css/utils/_post-definitions.scss +0 −26 Go to diff View file
D src/themes/FlamingParrot/css/utils/_register.scss +0 −28 Go to diff View file
D src/themes/FlamingParrot/images/register_background.png +- −- Go to diff View file
D src/themes/FlamingParrot/images/register_background_bar.png +- −- Go to diff View file
M src/www/account/register.php +50 −36 Go to diff View file
D src/www/scripts/register.js +0 −62 Go to diff View file