Skip to content
GitLab
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
16bfa6f4
Commit
16bfa6f4
authored
Jun 11, 2021
by
Sietse Ringers
Browse files
docs: add comment in myirmaserver memorydb on why a particular error is returned
parent
55b2ca78
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/keyshare/myirmaserver/memorydb.go
View file @
16bfa6f4
...
...
@@ -58,6 +58,8 @@ func (db *memoryDB) verifyEmailToken(token string) (int64, error) {
userID
,
ok
:=
db
.
verifyEmailTokens
[
token
]
if
!
ok
{
// We return this particular error in this case for consistency with the postgres DB.
// The calling function replaces this with a more informative error for the frontend.
return
0
,
keyshare
.
ErrUserNotFound
}
...
...
@@ -97,6 +99,8 @@ func (db *memoryDB) loginUserCandidates(token string) ([]loginCandidate, error)
email
,
ok
:=
db
.
loginEmailTokens
[
token
]
if
!
ok
{
// We return this particular error in this case for consistency with the postgres DB.
// The calling function replaces this with a more informative error for the frontend.
return
nil
,
keyshare
.
ErrUserNotFound
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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