Create WrapperAuthenticator and simplify Authenticator behaviour

Speeds up recompilation by reducing compile-time cycles
This commit is contained in:
Alex Gleason 2021-06-07 18:07:54 -05:00
commit 1399b82f7b
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
9 changed files with 91 additions and 75 deletions

View file

@ -8,8 +8,7 @@ defmodule Pleroma.Web.Auth.PleromaAuthenticator do
alias Pleroma.User
alias Pleroma.Web.Plugs.AuthenticationPlug
import Pleroma.Web.Auth.Authenticator,
only: [fetch_credentials: 1, fetch_user: 1]
import Pleroma.Web.Auth.Helpers, only: [fetch_credentials: 1, fetch_user: 1]
@behaviour Pleroma.Web.Auth.Authenticator