mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 08:31:23 -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',
|
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} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -10,6 +10,10 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.demographics-checkbox-is-robot {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
&[type=radio],
|
&[type=radio],
|
||||||
&[type=checkbox] {
|
&[type=checkbox] {
|
||||||
|
|
Loading…
Reference in a new issue