Skip to content

Commit

Permalink
Remove unspecified 'success' parameter from requestToken responses
Browse files Browse the repository at this point in the history
  • Loading branch information
babolivier committed Jun 17, 2020
1 parent a005037 commit fd385c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/302.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stop sending the unspecified `success` parameter in responses to `/requestToken` requests.
2 changes: 1 addition & 1 deletion sydent/http/servlets/emailservlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def render_POST(self, request):
sid = self.sydent.validators.email.requestToken(
email, clientSecret, sendAttempt, nextLink, ipaddress=ipaddress
)
resp = {'success': True, 'sid': str(sid)}
resp = {'sid': str(sid)}
except EmailAddressException:
request.setResponseCode(400)
resp = {'errcode': 'M_INVALID_EMAIL', 'error': 'Invalid email address'}
Expand Down

0 comments on commit fd385c5

Please sign in to comment.