name discard
This commit is contained in:
parent
4f0f3ec610
commit
bd5dd57c6c
@ -512,7 +512,7 @@ defmodule Lokal.AccountsTest do
|
||||
|
||||
test "deletes all tokens for the given user", %{user: user} do
|
||||
_session_token = Accounts.generate_user_session_token(user)
|
||||
{:ok, _} = Accounts.reset_user_password(user, %{"password" => "new valid password"})
|
||||
{:ok, _user} = Accounts.reset_user_password(user, %{"password" => "new valid password"})
|
||||
refute Repo.get_by(UserToken, user_id: user.id)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user