Files
appwrite/app/controllers/api
Steven Nguyen 92a307c164 Fix user identity attaching to wrong user
Suppose a user has 2 accounts on Appwrite:

1. joe@example.com
2. joe@gmail.com

Prior to this PR, if joe@example.com created a Google OAuth2 session
using his joe@gmail.com email, a new joe@gmail.com identity would be
created linked to joe@example.com.

This is especially problematic because if the user tried to create a
Google OAuth2 session using joe@gmail.com, Appwrite would lookup the
user via email and find the joe@gmail.com user, but then find an
identity from joe@example.com. This mismatching user ID would then
cause an error.

This PR prevents an identity from being created if the email from the
OAuth2 provider matches another user's email.
2023-12-13 18:45:05 +00:00
..
2023-10-02 17:02:48 +03:00
2023-10-02 17:02:48 +03:00
2023-10-02 17:02:48 +03:00
2023-11-13 14:39:33 +01:00
2023-10-02 17:02:48 +03:00
2023-10-15 20:41:09 +03:00
2023-11-06 14:49:33 +00:00
2023-10-26 16:47:14 -07:00
2023-11-15 11:41:42 +05:30