Added `auth_template/0` to DatabaseAuthenticator.
[akkoma] / lib / pleroma / web / auth / database_authenticator.ex
index e78068b03bb65417cfa43a5c8ed37bd9147cac8b..494f28f23590ada1f55baed1c62fa6b4e8eb6c8f 100644 (file)
@@ -17,4 +17,9 @@ defmodule Pleroma.Web.Auth.DatabaseAuthenticator do
 
   @callback handle_error(Plug.Conn.t(), any()) :: any()
   def handle_error(plug, error), do: implementation().handle_error(plug, error)
+
+  @callback auth_template() :: String.t() | nil
+  def auth_template do
+    implementation().auth_template() || Pleroma.Config.get(:auth_template, "show.html")
+  end
 end