Skip to content

Commit 1d60673

Browse files
authored
update dummy string (#31342)
1 parent 3c7df59 commit 1d60673

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

builtin/credential/userpass/path_login.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,7 @@ func (b *backend) pathLogin(ctx context.Context, req *logical.Request, d *framew
8989
} else {
9090
// This is still acceptable as bcrypt will still make sure it takes
9191
// a long time, it's just nicer to be random if possible
92-
var err error
93-
userPassword, err = bcrypt.GenerateFromPassword([]byte("dummy"), bcrypt.DefaultCost)
94-
if err != nil {
95-
return logical.ErrorResponse("invalid username or password"), nil
96-
}
92+
userPassword = []byte("$2a$10$/rzAjBPX3APZv8DesvsjB.OKdMif2xomluDfaxQ.OZcF06EuECsVG")
9793
}
9894

9995
// Check for a password match. Check for a hash collision for Vault 0.2+,

0 commit comments

Comments
 (0)