Packages

pleroma

0.9.0-develop.2dcded20

Pleroma is a federated social network server.

Security advisory: This version has known vulnerabilities. View advisories

Current section

Files

Jump to
pleroma lib pleroma web oauth fallback_controller.ex
Raw

lib/pleroma/web/oauth/fallback_controller.ex

defmodule Pleroma.Web.OAuth.FallbackController do
use Pleroma.Web, :controller
alias Pleroma.Web.OAuth.OAuthController
# No user/password
def call(conn, _) do
conn
|> put_flash(:error, "Invalid Username/Password")
|> OAuthController.authorize(conn.params)
end
end