David Taylor 820564826e
FIX: Ensure that login does not fail for users with invite records (#15647)
In the unlikely, but possible, scenario where a user has no email_tokens, and has an invite record for their email address, login would fail. This commit fixes the `Invite` `user_doesnt_already_exist` validation so that it only applies to new invites, or when changing the email address.

This regressed in d8fe0f4199b5bb44fa79fa489586b4029289242c (based on `git bisect`)
2022-01-20 10:54:38 +00:00
..
2021-12-02 22:41:55 +05:30
2020-04-28 15:59:39 +05:30
2019-11-29 15:49:08 +00:00
2022-01-14 17:51:13 -03:00
2019-10-21 12:08:20 +01:00
2020-05-05 13:46:57 +10:00
2021-12-02 22:41:55 +05:30
2019-10-17 16:58:22 +11:00