Made auth customization be runtime-configurable.

This commit is contained in:
Ivan Tashkinov 2019-02-28 13:00:54 +03:00
commit b6f915313f
3 changed files with 14 additions and 8 deletions

View file

@ -25,7 +25,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do
available_scopes = (app && app.scopes) || []
scopes = oauth_scopes(params, nil) || available_scopes
template = Application.get_env(:pleroma, :auth_template, "show.html")
template = Pleroma.Config.get(:auth_template, "show.html")
render(conn, template, %{
response_type: params["response_type"],