mongooseim test: explicitly set password for the deactivated used

This commit is contained in:
fence 2020-04-27 19:32:58 +02:00
parent 935ca2c132
commit d607b4d840

View file

@ -42,7 +42,7 @@ test "/user_exists", %{conn: conn} do
test "/check_password", %{conn: conn} do test "/check_password", %{conn: conn} do
user = insert(:user, password_hash: Comeonin.Pbkdf2.hashpwsalt("cool")) user = insert(:user, password_hash: Comeonin.Pbkdf2.hashpwsalt("cool"))
_deactivated_user = insert(:user, nickname: "konata", deactivated: true) _deactivated_user = insert(:user, nickname: "konata", deactivated: true, password_hash: Comeonin.Pbkdf2.hashpwsalt("cool"))
res = res =
conn conn