1. 12 Jan, 2022 1 commit
    • Magdalena Frankiewicz's avatar
      Use the same email validation for User and Email · 866a5fa0
      Magdalena Frankiewicz authored
      Otherwise, it is possible that a `User` primary email is successfully
      saved, but it cannot be added to the emails table due to being invalid
      for the `Email` model.
      
      The `Email#email` validation is now more relaxed, and the same as the
      `User#email` validation: it is the Devise email validation, that
      only checks that there is a single @ sign separating local
      part and domain. The previous stricter Email#email validation was
      enforcing compliance with RFC3696, but many mail servers allow addresses
      that are not fully compliant with the RFC. Therefore, the relaxed
      validation is preferable, to avoid blocking working email addresses.
      
      Changelog: fixed
      866a5fa0
  2. 11 Jan, 2022 39 commits