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().
|
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).
|
|
||||||
|
|
Loading…
Reference in New Issue