User: Don't let deactivated users authenticate.
This commit is contained in:
parent
3527a03e58
commit
ff4af8c5ee
|
@ -70,6 +70,8 @@ defmodule Pleroma.User do
|
||||||
def auth_active?(%User{info: %User.Info{confirmation_pending: true}}),
|
def auth_active?(%User{info: %User.Info{confirmation_pending: true}}),
|
||||||
do: !Pleroma.Config.get([:instance, :account_activation_required])
|
do: !Pleroma.Config.get([:instance, :account_activation_required])
|
||||||
|
|
||||||
|
def auth_active?(%User{info: %User.Info{deactivated: true}}), do: false
|
||||||
|
|
||||||
def auth_active?(%User{}), do: true
|
def auth_active?(%User{}), do: true
|
||||||
|
|
||||||
def visible_for?(user, for_user \\ nil)
|
def visible_for?(user, for_user \\ nil)
|
||||||
|
|
Loading…
Reference in New Issue