diff options
author | Alex Gleason <alex@alexgleason.me> | 2020-07-17 12:26:52 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2020-07-17 12:26:52 -0500 |
commit | 15f8921b111bc38d0d9eb9ccd1fd09e41cdbc85e (patch) | |
tree | 920e33b8648af76c64c823320f044439cf97d403 | |
parent | 57568437361dd14151e3aa0590c7d1da05141cf4 (diff) | |
download | pleroma-15f8921b111bc38d0d9eb9ccd1fd09e41cdbc85e.tar.gz pleroma-15f8921b111bc38d0d9eb9ccd1fd09e41cdbc85e.zip |
Test that unapproved users can never log in regardless of admin settings
-rw-r--r-- | test/web/oauth/oauth_controller_test.exs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/web/oauth/oauth_controller_test.exs b/test/web/oauth/oauth_controller_test.exs index ec5b78750..1200126b8 100644 --- a/test/web/oauth/oauth_controller_test.exs +++ b/test/web/oauth/oauth_controller_test.exs @@ -998,8 +998,7 @@ defmodule Pleroma.Web.OAuth.OAuthControllerTest do } end - test "rejects token exchange for valid credentials belonging to an unapproved user and approval is required" do - Pleroma.Config.put([:instance, :account_approval_required], true) + test "rejects token exchange for valid credentials belonging to an unapproved user" do password = "testpassword" user = insert(:user, password_hash: Pbkdf2.hash_pwd_salt(password), approval_pending: true) |