Made auth customization be runtime-configurable.
[akkoma] / lib / pleroma / web / oauth / oauth_controller.ex
index 02c0babd24080f75bc936f0a48aa10b8c1b17c81..5c2b0507c9a0c8c5dc48fb0dff643986c22d55b8 100644 (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"],