Remove also the cookies using storage:delete_set/2.
parent
140427853e
commit
be8fd2e0e6
|
@ -146,7 +146,5 @@ Delete an existing user from the database.
|
|||
Reason :: term().
|
||||
|
||||
delete(User) ->
|
||||
% We are missing the cleanup of the cookies
|
||||
% here. For that, we need to add at least another
|
||||
% API to the storage layer.
|
||||
storage:delete(?USERSBUCK, User).
|
||||
ok = storage:delete(?USERSBUCK, User),
|
||||
ok = storage:delete_set(?COOKIESBUCK, [{user, User}]).
|
||||
|
|
Loading…
Reference in New Issue