Skip to content

Commit

Permalink
Forbid empty admin password
Browse files Browse the repository at this point in the history
  • Loading branch information
sblaisot committed Nov 23, 2023
1 parent b71f3b0 commit 0213d18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ passphrase if needed.
if !bytes.Equal(pass1, pass2) {
return fmt.Errorf("Passphrase missmatch")
}
if len(pass1) == 0 {
return fmt.Errorf("Empty password is forbidden")
}

passphrase = pass1
}
Expand Down

0 comments on commit 0213d18

Please sign in to comment.