diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-12-09 10:10:45 +0100 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-12-09 10:10:45 +0100 |
commit | d5a13c10ac6a9a5f8dbb1932ffc85260f079a2dc (patch) | |
tree | 704ec71b1cbdf9bc8f321d2b333a6e1a0ca79add /lib/pleroma/plugs/authentication_plug.ex | |
parent | 35cfbf43a00890fd23297fa6f67b23c415d32b04 (diff) | |
parent | ef2322bdb7d46882eeae0271c4381efda6835c3c (diff) | |
download | pleroma-d5a13c10ac6a9a5f8dbb1932ffc85260f079a2dc.tar.gz |
Merge branch 'feature/user_deletion' into develop
Diffstat (limited to 'lib/pleroma/plugs/authentication_plug.ex')
-rw-r--r-- | lib/pleroma/plugs/authentication_plug.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/plugs/authentication_plug.ex b/lib/pleroma/plugs/authentication_plug.ex index beb02eb88..60f6faf49 100644 --- a/lib/pleroma/plugs/authentication_plug.ex +++ b/lib/pleroma/plugs/authentication_plug.ex @@ -12,6 +12,7 @@ defmodule Pleroma.Plugs.AuthenticationPlug do def call(conn, opts) do with {:ok, username, password} <- decode_header(conn), {:ok, user} <- opts[:fetcher].(username), + false <- !!user.info["deactivated"], saved_user_id <- get_session(conn, :user_id), {:ok, verified_user} <- verify(user, password, saved_user_id) do |