mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 19:29:11 +00:00
Test that unapproved users can never log in regardless of admin settings
This commit is contained in:
parent
5756843736
commit
15f8921b11
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue