Skip to content

Helper reset password panicing if no user is found #13

@kolio-poppa

Description

@kolio-poppa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions