aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/oauth/oauth_controller.ex
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-02-28 13:58:58 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-02-28 13:58:58 +0300
commit4e77f68414c1dd6a906d1d9b6b78916db5c213d5 (patch)
tree4f247f0255848335f5a475b2d22d6173b4b3ff2d /lib/pleroma/web/oauth/oauth_controller.ex
parentb6f915313f59223002a0eff88c1eefb00ca5c8f3 (diff)
downloadpleroma-4e77f68414c1dd6a906d1d9b6b78916db5c213d5.tar.gz
Added `auth_template/0` to DatabaseAuthenticator.
Diffstat (limited to 'lib/pleroma/web/oauth/oauth_controller.ex')
-rw-r--r--lib/pleroma/web/oauth/oauth_controller.ex4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/pleroma/web/oauth/oauth_controller.ex b/lib/pleroma/web/oauth/oauth_controller.ex
index 5c2b0507c..99346f399 100644
--- a/lib/pleroma/web/oauth/oauth_controller.ex
+++ b/lib/pleroma/web/oauth/oauth_controller.ex
@@ -25,9 +25,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do
available_scopes = (app && app.scopes) || []
scopes = oauth_scopes(params, nil) || available_scopes
- template = Pleroma.Config.get(:auth_template, "show.html")
-
- render(conn, template, %{
+ render(conn, DatabaseAuthenticator.auth_template(), %{
response_type: params["response_type"],
client_id: params["client_id"],
available_scopes: available_scopes,