Commit 4ef0dba8 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

fix(backend): remove grant types when removing user

Also test for leftover entries in the DB
parent 144f2e92
......@@ -584,8 +584,10 @@ Removes the user
sub remove($self) {
confess if $self->name eq 'f';
my $sth = $$CON->dbh->prepare("DELETE FROM users where id=?");
my $sth = $$CON->dbh->prepare("DELETE FROM grants_user where id_user=?");
$sth = $$CON->dbh->prepare("DELETE FROM users where id=?");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment