Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
2225ebd8
Commit
2225ebd8
authored
Apr 19, 2021
by
Sietse Ringers
Browse files
fix: return previously ignored errors in keyshare server pin handling
parent
f8d64ebe
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/keyshare/keyshareserver/server.go
View file @
2225ebd8
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment