projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5756843
)
Test that unapproved users can never log in regardless of admin settings
author
Alex Gleason
<alex@alexgleason.me>
Fri, 17 Jul 2020 17:26:52 +0000
(12:26 -0500)
committer
Alex Gleason
<alex@alexgleason.me>
Fri, 17 Jul 2020 17:26:52 +0000
(12:26 -0500)
test/web/oauth/oauth_controller_test.exs
patch
|
blob
|
history
diff --git
a/test/web/oauth/oauth_controller_test.exs
b/test/web/oauth/oauth_controller_test.exs
index ec5b787500845d0a1bcf12120160b2973379d22d..1200126b81dca7b5b45be13b95447dc8eed6d3a2 100644
(file)
--- 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)