Commit 1159601b authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Don't send pin on canceled keyshare sessions

parent 46d4f765
......@@ -204,14 +204,14 @@ func startKeyshareSession(
// with authorization, or stop the keyshare protocol and inform of failure.
func (ks *keyshareSession) VerifyPin(attempts int) {
ks.pinRequestor.RequestPin(attempts, PinHandler(func(proceed bool, pin string) {
if !proceed {
ks.sessionHandler.KeyshareCancelled()
}
success, attemptsRemaining, blocked, err := ks.verifyPinAttempt(pin)
if err != nil {
ks.sessionHandler.KeyshareError(err)
return
}
if !proceed {
ks.sessionHandler.KeyshareCancelled()
}
if blocked != 0 {
ks.sessionHandler.KeyshareBlocked(blocked)
return
......
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