Skip to content

Commit

Permalink
return proper error for invalid ticket signature cases
Browse files Browse the repository at this point in the history
  • Loading branch information
itswisdomagain committed Sep 11, 2019
1 parent d140358 commit 38e6e8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/api-auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func (application *Application) validateTicketOwnership(authHeader string) (mult

if valid {
multiSigAddress = ticketInfo.MultiSigAddress
} else {
authValidationFailureReason = "invalid timestamp signature, timestamp was not signed using " +
"the ticket owner's reward address"
}
return
}
Expand Down

0 comments on commit 38e6e8e

Please sign in to comment.