User: Don't let deactivated users authenticate.

This commit is contained in:
rinpatch 2019-11-19 19:22:20 +03:00
parent 3527a03e58
commit ff4af8c5ee

View File

@ -70,6 +70,8 @@ defmodule Pleroma.User do
def auth_active?(%User{info: %User.Info{confirmation_pending: true}}),
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 visible_for?(user, for_user \\ nil)