diff options
author | Maxim Filippov <colixer@gmail.com> | 2019-10-27 16:11:25 +0300 |
---|---|---|
committer | Maxim Filippov <colixer@gmail.com> | 2019-10-27 16:11:25 +0300 |
commit | 791bcfd90f41da9d77ab5a5ad6eec22ae8050b8a (patch) | |
tree | 98ebe750f99cb6be2532e9dbaf3b334957353777 /lib/pleroma/web/oauth/oauth_controller.ex | |
parent | 8eff05d4c62c4d3300fee173cad84f75a0aafb4d (diff) | |
parent | 060adfd762a5183b3cc5f51e041819b24b8430d2 (diff) | |
download | pleroma-791bcfd90f41da9d77ab5a5ad6eec22ae8050b8a.tar.gz |
Merge branch 'develop' into feature/store-statuses-data-inside-flag
Diffstat (limited to 'lib/pleroma/web/oauth/oauth_controller.ex')
-rw-r--r-- | lib/pleroma/web/oauth/oauth_controller.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/oauth/oauth_controller.ex b/lib/pleroma/web/oauth/oauth_controller.ex index 03c9a5027..fe71aca8c 100644 --- a/lib/pleroma/web/oauth/oauth_controller.ex +++ b/lib/pleroma/web/oauth/oauth_controller.ex @@ -202,9 +202,9 @@ defmodule Pleroma.Web.OAuth.OAuthController do with {:ok, %User{} = user} <- Authenticator.get_user(conn), {:ok, app} <- Token.Utils.fetch_app(conn), {:auth_active, true} <- {:auth_active, User.auth_active?(user)}, - {:user_active, true} <- {:user_active, !user.info.deactivated}, + {:user_active, true} <- {:user_active, !user.deactivated}, {:password_reset_pending, false} <- - {:password_reset_pending, user.info.password_reset_pending}, + {:password_reset_pending, user.password_reset_pending}, {:ok, scopes} <- validate_scopes(app, params), {:ok, auth} <- Authorization.create_authorization(app, user, scopes), {:ok, token} <- Token.exchange_token(app, auth) do |