Made auth customization be runtime-configurable.
This commit is contained in:
parent
e98d34e5fb
commit
b6f915313f
3 changed files with 14 additions and 8 deletions
|
|
@ -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"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue