On Donnerstag, 27. Februar 2020, 10:26:42 CET Christian wrote:
Am 27.02.20 um 07:26 schrieb Adrian Schröter:
On Mittwoch, 26. Februar 2020, 22:12:46 CET wrote Christian:
Hi
how to get rid of deleted users ? when you delete users they are still there, just flaged as 'deleted' How to completly remove them ?
you would need to do it on rails console or in the database.
Please note that you may create serious issues, including security issues when infrastructure trusts in the name. Suddenly a different person could take over actions...
Also you don't know anymore who was a certain action in log files...
We do therefore only remove all personal user data, but keep the account name and disable it. It won't be listed either anymore.
Hello Adrian,
I understand your concerns, but I want to get rid of users that did a registration obviously via robots ... There should be only users I create ... no self registration There should not be any 'anonymous' registrations anyway ... so I changed configuration to:
<anonymous>off</anonymous> <registration>deny</registration>
hope this is enough
now I want to get rid of those unwanted users on my system. How can I achieve that exactly ?
in rails console:
u = User.find_by_login "$login"
u.destroy
--
Adrian Schroeter