Skip to content

Commit 50ae775

Browse files
author
Paul
committed
allows to use the "stoken" parameter
1 parent 961f309 commit 50ae775

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/recaptcha.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const ReCAPTCHA = React.createClass({
1111
tabindex: PropTypes.number,
1212
onExpired: PropTypes.func,
1313
size: PropTypes.oneOf(["compact", "normal"]),
14+
stoken: PropTypes.string,
1415
},
1516

1617
getInitialState() {
@@ -57,6 +58,7 @@ const ReCAPTCHA = React.createClass({
5758
tabindex: this.props.tabindex,
5859
"expired-callback": this.handleExpired,
5960
size: this.props.size,
61+
stoken: this.props.stoken,
6062
});
6163
this.setState({
6264
widgetId: id,

0 commit comments

Comments
 (0)