Remove also the cookies using storage:delete_set/2.

main
absc 2024-09-15 20:21:03 +00:00
parent 140427853e
commit be8fd2e0e6
1 changed files with 2 additions and 4 deletions

View File

@ -146,7 +146,5 @@ Delete an existing user from the database.
Reason :: term(). Reason :: term().
delete(User) -> delete(User) ->
% We are missing the cleanup of the cookies ok = storage:delete(?USERSBUCK, User),
% here. For that, we need to add at least another ok = storage:delete_set(?COOKIESBUCK, [{user, User}]).
% API to the storage layer.
storage:delete(?USERSBUCK, User).