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

Helper reset password panicing if no user is found #13

Open
dzv3r0 opened this issue Jun 21, 2023 · 0 comments
Open

Helper reset password panicing if no user is found #13

dzv3r0 opened this issue Jun 21, 2023 · 0 comments

Comments

@dzv3r0
Copy link

dzv3r0 commented Jun 21, 2023

Following the instructions on https://docs.portainer.io/advanced/reset-admin we receive a panic.
What happens is in our database there is no user with ID 1 so we fall into the case of creating a new one.

However, on https://github.com/portainer/helper-reset-password/blob/master/cmd/helper-reset-password/main.go#L79 we try to get the password of a user that is nil, so it panics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant