Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User is deleted from loft UI #186

Open
mahendrabagul opened this issue Feb 23, 2022 · 1 comment
Open

User is deleted from loft UI #186

mahendrabagul opened this issue Feb 23, 2022 · 1 comment
Labels
area/ui Front-end related

Comments

@mahendrabagul
Copy link

mahendrabagul commented Feb 23, 2022

User is able to delete himself from the UI even if he is the first and only one user for loft UI.

There is no confirmation box on UI to let the user know about the side effects of deleting the user.

Steps to reproduce
1 loft start
2 loft login https://localhost:9898 --insecure
3 Login to loft UI
4 Delete the user from UI, user is deleted. User lost access to UI now and not even able to reset the password. Below message is being observed.

~ ❯ loft reset password --user admin
[info] Resetting password of user admin
[fatal] user admin was not found, run with '--create' to create this user automatically

@LukasGentele
Copy link
Member

@mahendrabagul Good catch! We should definitely prevent user self-deletion. I cannot think of any use case where this would be intended user behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui Front-end related
Projects
None yet
Development

No branches or pull requests

4 participants