diff --git a/api/cmd/portainer/main.go b/api/cmd/portainer/main.go index 28b4238d8..278ab0faa 100644 --- a/api/cmd/portainer/main.go +++ b/api/cmd/portainer/main.go @@ -623,7 +623,7 @@ func main() { if err != nil { log.Fatal(err) } - adminPasswordHash, err = cryptoService.Hash(string(content)) + adminPasswordHash, err = cryptoService.Hash(strings.TrimSuffix(string(content), "\n")) if err != nil { log.Fatal(err) }