mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
Use integer user id when creating authorization codes.
This commit is contained in:
@@ -138,7 +138,7 @@ class OAuth2FrontendController(RedditController):
|
||||
self._check_redirect_uri(client, redirect_uri)
|
||||
|
||||
if not c.errors:
|
||||
code = OAuth2AuthorizationCode._new(client._id, redirect_uri, c.user._id36, scope)
|
||||
code = OAuth2AuthorizationCode._new(client._id, redirect_uri, c.user._id, scope)
|
||||
resp = {"code": code._id, "state": state}
|
||||
return self.redirect(redirect_uri+"?"+urlencode(resp), code=302)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user