Test that unapproved users can never log in regardless of admin settings

This commit is contained in:
Alex Gleason 2020-07-17 12:26:52 -05:00
parent 5756843736
commit 15f8921b11
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 2 deletions

View File

@ -998,8 +998,7 @@ test "rejects token exchange for user with confirmation_pending set to true" do
} }
end end
test "rejects token exchange for valid credentials belonging to an unapproved user and approval is required" do test "rejects token exchange for valid credentials belonging to an unapproved user" do
Pleroma.Config.put([:instance, :account_approval_required], true)
password = "testpassword" password = "testpassword"
user = insert(:user, password_hash: Pbkdf2.hash_pwd_salt(password), approval_pending: true) user = insert(:user, password_hash: Pbkdf2.hash_pwd_salt(password), approval_pending: true)