mirror of https://github.com/portainer/portainer
fix(authentication): trim the newline character from the password string (#3091)
parent
68fe5d6906
commit
ef4c138e03
|
@ -623,7 +623,7 @@ func main() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
adminPasswordHash, err = cryptoService.Hash(string(content))
|
adminPasswordHash, err = cryptoService.Hash(strings.TrimSuffix(string(content), "\n"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue