From bbc97f841f95aee6e06ab89dd35c0851eea72294 Mon Sep 17 00:00:00 2001 From: Logan Hanks Date: Wed, 22 Aug 2012 12:47:47 -0700 Subject: [PATCH] Use integer user id when creating authorization codes. --- r2/r2/controllers/oauth2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/controllers/oauth2.py b/r2/r2/controllers/oauth2.py index a39220213..432429b3b 100644 --- a/r2/r2/controllers/oauth2.py +++ b/r2/r2/controllers/oauth2.py @@ -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: