mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 06:48:01 -05:00
Modify /api/new_captcha to return "iden" when api_type=json.
This commit is contained in:
@@ -82,7 +82,9 @@ class ApiminimalController(MinimalController):
|
||||
|
||||
@validatedForm()
|
||||
def POST_new_captcha(self, form, jquery, *a, **kw):
|
||||
jquery("body").captcha(get_iden())
|
||||
iden = get_iden()
|
||||
jquery("body").captcha(iden)
|
||||
form._send_data(iden = iden)
|
||||
|
||||
|
||||
class ApiController(RedditController):
|
||||
|
||||
Reference in New Issue
Block a user