Skip to content
Snippets Groups Projects
Unverified Commit 231e571c authored by Stephan Renatus's avatar Stephan Renatus
Browse files

server/api: fix logging in VerifyPassword


Before:

    msg="api: password check failed : %vcrypto/bcrypt: hashedPassword is not the hash of the given password"

After:

    msg="api: password check failed : crypto/bcrypt: hashedPassword is not the hash of the given password"

Signed-off-by: default avatarStephan Renatus <srenatus@chef.io>
parent 128d5da8
Branches
Tags
No related merge requests found
......@@ -275,7 +275,7 @@ func (d dexAPI) VerifyPassword(ctx context.Context, req *api.VerifyPasswordReq)
}
if err := bcrypt.CompareHashAndPassword(password.Hash, []byte(req.Password)); err != nil {
d.logger.Info("api: password check failed : %v", err)
d.logger.Infof("api: password check failed: %v", err)
return &api.VerifyPasswordResp{
Verified: false,
}, nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment