Skip to content

Commit

Permalink
cmd/credentials: update test password
Browse files Browse the repository at this point in the history
The required minimum length for passwords on the satellite will change
from 6 to 8. This change uses "password" (8 chars) instead of "123a123"
(7 chars).
  • Loading branch information
mobyvb committed Feb 21, 2024
1 parent 07582ae commit 9b1f647
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const (
encKeyVersionByte = byte(77) // magic number EncryptionKey encoding
secKeyVersionByte = byte(78) // magic number SecretKey encoding

password = "123a123"
password = "password"
secret = "Welcome1"
filename = ".creds"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (ce *ConsoleEndpoint) tryLogin(ctx context.Context, email string) (string,
Password string `json:"password"`
}

authToken.Password = "123a123"
authToken.Password = "password"
authToken.Email = email

res, err := json.Marshal(authToken)
Expand Down Expand Up @@ -172,7 +172,7 @@ func (ce *ConsoleEndpoint) createUser(ctx context.Context, regToken string, emai

registerData.FullName = "Alice"
registerData.Email = email
registerData.Password = "123a123"
registerData.Password = "password"
registerData.ShortName = "al"
registerData.Secret = regToken

Expand Down

0 comments on commit 9b1f647

Please sign in to comment.