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
51d9654a
Commit
51d9654a
authored
Jun 09, 2021
by
Sietse Ringers
Browse files
feat: check affected row count when adding new email address to keyshare user
parent
de1341b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/keyshare/myirmaserver/postgresdb.go
View file @
51d9654a
...
...
@@ -196,6 +196,9 @@ func (db *postgresDB) addEmail(id int64, email string) error {
if
err
!=
nil
{
return
err
}
if
aff
>
1
{
return
errors
.
Errorf
(
"Unexpected number of affected rows %d for email adding"
,
aff
)
}
if
aff
==
1
{
return
nil
}
...
...
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