Merge pull request #1502 from dexidp/sr/fix-log-formatting-in-VerifyPassword-grpc

server/api: fix logging in VerifyPassword
This commit is contained in:
Stephan Renatus 2019-07-30 15:06:48 +02:00 committed by GitHub
commit 7c1b4b3005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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