diff options
Diffstat (limited to 'lib/pleroma/web/o_auth/fallback_controller.ex')
-rw-r--r-- | lib/pleroma/web/o_auth/fallback_controller.ex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pleroma/web/o_auth/fallback_controller.ex b/lib/pleroma/web/o_auth/fallback_controller.ex index df68cbfc1..4bcf12253 100644 --- a/lib/pleroma/web/o_auth/fallback_controller.ex +++ b/lib/pleroma/web/o_auth/fallback_controller.ex @@ -4,6 +4,7 @@ defmodule Pleroma.Web.OAuth.FallbackController do use Pleroma.Web, :controller + alias Pleroma.Web.OAuth.OAuthBrowserController alias Pleroma.Web.OAuth.OAuthController def call(conn, {:register, :generic_error}) do @@ -13,14 +14,14 @@ defmodule Pleroma.Web.OAuth.FallbackController do :error, dgettext("errors", "Unknown error, please check the details and try again.") ) - |> OAuthController.registration_details(conn.params) + |> OAuthBrowserController.registration_details(conn.params) end def call(conn, {:register, _error}) do conn |> put_status(:unauthorized) |> put_flash(:error, dgettext("errors", "Invalid Username/Password")) - |> OAuthController.registration_details(conn.params) + |> OAuthBrowserController.registration_details(conn.params) end def call(conn, _error) do |