We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1745cea commit fbe43e3Copy full SHA for fbe43e3
lib/algora/accounts/accounts.ex
@@ -254,7 +254,9 @@ defmodule Algora.Accounts do
254
from(u in User,
255
left_join: i in Identity,
256
on: i.provider == "github" and i.provider_id == ^to_string(info["id"]),
257
- where: u.provider == "github" and u.provider_id == ^to_string(info["id"]),
+ where:
258
+ (u.provider == "github" and u.provider_id == ^to_string(info["id"])) or
259
+ u.email == ^primary_email,
260
select: {u, i}
261
)
262
0 commit comments