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 11beb84
Showing 1 changed file with 1 addition and 1 deletion.
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 11beb84

Please sign in to comment.