Merge pull request #1502 from dexidp/sr/fix-log-formatting-in-VerifyPassword-grpc
server/api: fix logging in VerifyPassword
This commit is contained in:
commit
7c1b4b3005
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
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{
|
return &api.VerifyPasswordResp{
|
||||||
Verified: false,
|
Verified: false,
|
||||||
}, nil
|
}, nil
|
||||||
|
|
Reference in a new issue