mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Add bot honeypot
This commit is contained in:
parent
cfa85427b1
commit
da2a4ce48c
3 changed files with 9 additions and 2 deletions
|
@ -7,11 +7,11 @@ var Checkbox = React.createClass({
|
|||
type: 'Checkbox',
|
||||
render: function () {
|
||||
var classes = classNames(
|
||||
'checkbox',
|
||||
'checkbox-row',
|
||||
this.props.className
|
||||
);
|
||||
return (
|
||||
<FRCCheckbox {... this.props} className={classes} />
|
||||
<FRCCheckbox {... this.props} rowClassName={classes} />
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -116,6 +116,9 @@ module.exports = {
|
|||
options={countryData.countryOptions}
|
||||
value={this.props.defaultCountry}
|
||||
required />
|
||||
<Checkbox className="demographics-checkbox-is-robot"
|
||||
label="I'm a robot!"
|
||||
name="user.isRobot" />
|
||||
<Button type="submit">Next Step</Button>
|
||||
</Form>
|
||||
</FormStep>
|
||||
|
|
|
@ -10,6 +10,10 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.demographics-checkbox-is-robot {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input {
|
||||
&[type=radio],
|
||||
&[type=checkbox] {
|
||||
|
|
Loading…
Reference in a new issue