[#923] Support for multiple (external) registrations per user via Registration.
This commit is contained in:
parent
2a96283efb
commit
26b6354095
9 changed files with 93 additions and 50 deletions
|
|
@ -47,7 +47,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do
|
|||
conn,
|
||||
%{"client_id" => client_id, "redirect_uri" => redirect_uri} = params
|
||||
) do
|
||||
with {:ok, user} <- Authenticator.get_or_create_user_by_oauth(conn, params) do
|
||||
with {:ok, user} <- Authenticator.get_by_external_registration(conn, params) do
|
||||
do_create_authorization(
|
||||
conn,
|
||||
%{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue