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', type: 'Checkbox',
render: function () { render: function () {
var classes = classNames( var classes = classNames(
'checkbox', 'checkbox-row',
this.props.className this.props.className
); );
return ( return (
<FRCCheckbox {... this.props} className={classes} /> <FRCCheckbox {... this.props} rowClassName={classes} />
); );
} }
}); });

View file

@ -116,6 +116,9 @@ module.exports = {
options={countryData.countryOptions} options={countryData.countryOptions}
value={this.props.defaultCountry} value={this.props.defaultCountry}
required /> required />
<Checkbox className="demographics-checkbox-is-robot"
label="I'm a robot!"
name="user.isRobot" />
<Button type="submit">Next Step</Button> <Button type="submit">Next Step</Button>
</Form> </Form>
</FormStep> </FormStep>

View file

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