Account validation email action and view

What does this MR do and why?

This MR is part of #346233 (closed).

It adds the email view and mailer action for Account Validation Email. This email will be sent (sending is not implemented in this MR) to a pipeline creator when their pipeline fails because their account is not validated. This failure happens to prevent abuse.

References

Design: https://gitlab.com/gitlab-org/growth/team-tasks/-/issues/463 Why are we sending this email?: #346233 (closed)

Screenshots or screen recordings

HTML Text
Screen_Shot_2021-11-26_at_10.43.12_AM Screen_Shot_2021-11-26_at_10.43.24_AM

How to set up and validate locally

  1. Grab a pipeline from the database

    # In Rails console (run `bin/rails c` in `/path/to/gitlab-development-kit/gitlab`)
    > pipeline = Ci::Pipeline.last
  2. Send the email

    # Still in Rails console
    > Notify.account_validation_email(pipeline, 'test@example.com').deliver_now
  3. Open letter_opener and validate the content of the email

    It should look like this 👇🏼 Screen_Shot_2021-11-26_at_10.43.12_AM

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Eugie Limpin

Merge request reports

Loading