Skip to content

Commit

Permalink
Allow anonymous user with empty password
Browse files Browse the repository at this point in the history
  • Loading branch information
iychoi committed Jan 19, 2023
1 parent 0e073a1 commit 4b2e1e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commons/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,12 @@ func InputMissingFields() (bool, error) {
fmt.Print("\n")
password = string(bytePassword)

if env.Username == "anonymous" && len(password) == 0 {
// exceptional case
updated = true
break
}

if len(password) == 0 {
fmt.Println("Please provide password")
fmt.Println("")
Expand Down

0 comments on commit 4b2e1e7

Please sign in to comment.