This commit is contained in:
Lain Soykaf 2021-01-14 16:01:14 +01:00
parent 39f3683a06
commit c4b74c9c3f
1 changed files with 7 additions and 1 deletions

View File

@ -11,7 +11,13 @@ defmodule Pleroma.Web.Auth.PleromaAuthenticatorTest do
setup do setup do
password = "testpassword" password = "testpassword"
name = "AgentSmith" name = "AgentSmith"
user = insert(:user, nickname: name, password_hash: Pleroma.Password.Pbkdf2.hash_pwd_salt(password))
user =
insert(:user,
nickname: name,
password_hash: Pleroma.Password.Pbkdf2.hash_pwd_salt(password)
)
{:ok, [user: user, name: name, password: password]} {:ok, [user: user, name: name, password: password]}
end end