Use integer user id when creating authorization codes.

This commit is contained in:
Logan Hanks
2012-08-22 12:47:47 -07:00
parent d4d2214595
commit bbc97f841f

View File

@@ -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: