Skip to content

Send invited users to sign up instead of sign in when possible

What does this MR do?

  • Sends the invited user to sign up instead of sign in under these conditions
    • the user doesn't exist with the email used for invite
    • sign-ups are allowed for the instance
    • member still exists to be valid to accept the invite
  • applies the correct notice message if sent to sign-up instead of sign-in

How to test locally(gdk)

  1. Invite a new user to a project via email.
  2. go to http://localhost:3000/rails/letter_opener/ to find the email.
  3. click 'join' on that email and validate it redirects to sign-up.

Screenshots (strongly suggested)

When qualifying, send to sign up instead...

Screen_Recording_2021-03-23_at_11.11.11_AM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #325288

Edited by Doug Stull

Merge request reports