Add bot honeypot

This commit is contained in:
Ray Schamp 2016-06-06 15:50:31 -04:00
parent cfa85427b1
commit da2a4ce48c
3 changed files with 9 additions and 2 deletions

View file

@ -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} />
);
}
});

View file

@ -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>

View file

@ -10,6 +10,10 @@
width: 100%;
}
.demographics-checkbox-is-robot {
display: none;
}
input {
&[type=radio],
&[type=checkbox] {