Skip to content

Commit

Permalink
allows to use the "stoken" parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul committed Nov 25, 2015
1 parent 961f309 commit 50ae775
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/recaptcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const ReCAPTCHA = React.createClass({
tabindex: PropTypes.number,
onExpired: PropTypes.func,
size: PropTypes.oneOf(["compact", "normal"]),
stoken: PropTypes.string,
},

getInitialState() {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 50ae775

Please sign in to comment.