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: