Commit ec3366e7 authored by David Venhoek's avatar David Venhoek
Browse files

Removed non-needed check that would always succeed.

parent e42d4c0f
......@@ -368,7 +368,7 @@ func (ks *keyshareSession) GetCommitments() {
comms := &proofPCommitmentMap{}
err := transport.Post("prove/getCommitments", comms, pkids[managerID])
if err != nil {
if err.(*irma.SessionError) != nil && err.(*irma.SessionError).RemoteError != nil &&
if err.(*irma.SessionError).RemoteError != nil &&
err.(*irma.SessionError).RemoteError.Status == http.StatusForbidden && !ks.pinCheck {
// JWT may be out of date due to clock drift; request pin and try again
// (but only if we did not ask for a PIN earlier)
Markdown is supported
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