Commit 2225ebd8 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

fix: return previously ignored errors in keyshare server pin handling

parent f8d64ebe
......@@ -341,7 +341,7 @@ func (s *Server) doVerifyPin(user *KeyshareUser, username, pin string) (irma.Key
ok, tries, wait, err := s.db.ReservePincheck(user)
if err != nil {
s.conf.Logger.WithField("error", err).Error("Could not reserve pin check slot")
return irma.KeysharePinStatus{}, nil
return irma.KeysharePinStatus{}, err
}
if !ok {
err = s.db.AddLog(user, PinCheckRefused, nil)
......@@ -445,7 +445,7 @@ func (s *Server) doUpdatePin(user *KeyshareUser, oldPin, newPin string) (irma.Ke
}
} else if err != nil {
s.conf.Logger.WithField("error", err).Error("Could not change pin")
return irma.KeysharePinStatus{}, nil
return irma.KeysharePinStatus{}, err
}
// Mark pincheck as success, resetting users wait and count
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment