YunoHost-Apps / pixelfed_ynh

The federated image shareing service Pixelfed for YunoHost
https://pixelfed.org/
GNU Affero General Public License v3.0
44 stars 15 forks source link

Impossible de supprimer un compte #74

Closed stemy2 closed 5 years ago

stemy2 commented 5 years ago

Hello,

Quand j'essaye de supprimer un utilisateur via le panneau d'administration, ça me donne un «page not found» quand je clique sur «Delete account».

StopTrackingUs commented 5 years ago

I do not know if account deletion is set up right now from the UI you can delete accounts from the command using sudo php7.2 artisan user:delete [userid]

Answer yes to the question of if you want to delete the user. Then type in the username to complete deletion.

StopTrackingUs commented 5 years ago

I am helping the upstream out with documentation. A complete list of artisan commands are in my repo and once I make all the updates I will submit a pull to the upstream so that the documentation site will be updated.

https://github.com/StopTrackingUs/docs/blob/master/master/running-an-instance/artisan-command.md

stemy2 commented 5 years ago

@StopTrackingUs Your command doesn't work for admin account, it says «Cannot delete an admin account from CLI.»

StopTrackingUs commented 5 years ago

Oh. Thats an interesting one. I would not have guessed you were trying to delete an admin account. I would add this as an issue in the upstream.

StopTrackingUs commented 5 years ago

A work around would be to use the user:admin command to remove admin from the user then try and delete them again.

yalh76 commented 5 years ago

Hi @stemy2

I have tested to delete a "normal" user, here is the result: Capture

So you have to use the command provided by @StopTrackingUs.

And to delete an admin user, maybe first removing is admin status doing (cd /var/www/pixelfed && php7.2 artisan user:admin 1)