'Check whether CAPTCHAs are needed for API methods that define the
"captcha" and "iden" parameters.'

@allow_oauth2_access
@json_validate()
@api_doc(api_section.captcha)
def GET_needs_captcha(self, responder):

    return bool(c.user.needs_captcha())
