Auth module, removing user and related table
Added by soratobu kuroneko almost 13 years ago
Hello,
I'm using the new Auth module and would like to have an admin able to manage user (deleting them) or a regular user deleting is own account.
Indeed I have the table generated by the Auth module, but also other tables which contains user information.
I don't find out the correct way to delete easily an user and all its related data in the other tables.
Any help, please?
Thank you
Replies (2)
RE: Auth module, removing user and related table - Added by Koen Deforche almost 13 years ago
Hey,
This was indeed not foreseen --- although you could easily add it. The idea I had was that you would disable such an account, rather than remove it because the account may be referenced from historical data.
To support deletion more easily, we could add 'on delete cascade' modifiers for relations, in this way, when you delete a user, all of the authentication information would automatically be deleted by the database. That would solve it for you ?
Regards,
koen
RE: Auth module, removing user and related table - Added by soratobu kuroneko over 12 years ago
Sorry for the late answer. An optional 'on delete cascade' for the Auth module user database would be perfect for me.