aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/oauth/oauth_controller.ex
diff options
context:
space:
mode:
authorIvan Tashkinov <ivant.business@gmail.com>2019-03-18 17:23:38 +0300
committerIvan Tashkinov <ivant.business@gmail.com>2019-03-18 17:23:38 +0300
commit26b63540953f6a65bb52531b434fd6ab85aaedfe (patch)
treebb529911aff0405232b22eda6245791c929732c8 /lib/pleroma/web/oauth/oauth_controller.ex
parent2a96283efbd46c017cf9e15ef4fda3188e5e5bca (diff)
downloadpleroma-26b63540953f6a65bb52531b434fd6ab85aaedfe.tar.gz
[#923] Support for multiple (external) registrations per user via Registration.
Diffstat (limited to 'lib/pleroma/web/oauth/oauth_controller.ex')
-rw-r--r--lib/pleroma/web/oauth/oauth_controller.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/oauth/oauth_controller.ex b/lib/pleroma/web/oauth/oauth_controller.ex
index 588933d31..8c864cb1d 100644
--- a/lib/pleroma/web/oauth/oauth_controller.ex
+++ b/lib/pleroma/web/oauth/oauth_controller.ex
@@ -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,
%{