projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Call ConfirmUserPlug from Router, not Endpoint
[akkoma]
/
lib
/
pleroma
/
web
/
plugs
/
user_enabled_plug.ex
diff --git
a/lib/pleroma/web/plugs/user_enabled_plug.ex
b/lib/pleroma/web/plugs/user_enabled_plug.ex
index 291d1f568009753751cd6fd04d14827d2f4301e1..4f1b163bd836980ef52011bad88a4e406d901f6b 100644
(file)
--- a/
lib/pleroma/web/plugs/user_enabled_plug.ex
+++ b/
lib/pleroma/web/plugs/user_enabled_plug.ex
@@
-11,12
+11,10
@@
defmodule Pleroma.Web.Plugs.UserEnabledPlug do
end
def call(%{assigns: %{user: %User{} = user}} = conn, _) do
end
def call(%{assigns: %{user: %User{} = user}} = conn, _) do
- case User.account_status(user) do
- :active ->
- conn
-
- _ ->
- AuthHelper.drop_auth_info(conn)
+ if User.account_status(user) == :active do
+ conn
+ else
+ AuthHelper.drop_auth_info(conn)
end
end
end
end