diff options
author | Ivan Tashkinov <ivant.business@gmail.com> | 2019-03-18 17:23:38 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivant.business@gmail.com> | 2019-03-18 17:23:38 +0300 |
commit | 26b63540953f6a65bb52531b434fd6ab85aaedfe (patch) | |
tree | bb529911aff0405232b22eda6245791c929732c8 /lib/pleroma/web/oauth/oauth_controller.ex | |
parent | 2a96283efbd46c017cf9e15ef4fda3188e5e5bca (diff) | |
download | pleroma-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.ex | 2 |
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, %{ |