From 50ae77524fcaaa1d65d7c9f1f4ce55969ac2154d Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 25 Nov 2015 11:26:56 +0100 Subject: [PATCH] allows to use the "stoken" parameter --- src/recaptcha.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/recaptcha.js b/src/recaptcha.js index b7d940e..fae77d1 100644 --- a/src/recaptcha.js +++ b/src/recaptcha.js @@ -11,6 +11,7 @@ const ReCAPTCHA = React.createClass({ tabindex: PropTypes.number, onExpired: PropTypes.func, size: PropTypes.oneOf(["compact", "normal"]), + stoken: PropTypes.string, }, getInitialState() { @@ -57,6 +58,7 @@ const ReCAPTCHA = React.createClass({ tabindex: this.props.tabindex, "expired-callback": this.handleExpired, size: this.props.size, + stoken: this.props.stoken, }); this.setState({ widgetId: id,