From: Calv Collins Date: Thu, 8 Feb 2018 18:15:59 +0000 (+0000) Subject: Changed fallback controller to handle all cases from OAuthController X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=73249fa5ff25c3f40ca79dfb9e4ce49b0dc1326b;p=akkoma Changed fallback controller to handle all cases from OAuthController --- diff --git a/lib/pleroma/web/oauth/fallback_controller.ex b/lib/pleroma/web/oauth/fallback_controller.ex index 9ba9bc289..daa110532 100644 --- a/lib/pleroma/web/oauth/fallback_controller.ex +++ b/lib/pleroma/web/oauth/fallback_controller.ex @@ -2,15 +2,8 @@ defmodule Pleroma.Web.OAuth.FallbackController do use Pleroma.Web, :controller alias Pleroma.Web.OAuth.OAuthController - # No user - def call(conn, nil) do - conn - |> put_flash(:error, "Invalid Username/Password") - |> OAuthController.authorize(conn.params) - end - - # No password - def call(conn, false) do + # No user/password + def call(conn, _) do conn |> put_flash(:error, "Invalid Username/Password") |> OAuthController.authorize(conn.params)