mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
added placeholder for g-recaptcha-response
This commit is contained in:
parent
5269cf7330
commit
e44d52b735
1 changed files with 3 additions and 0 deletions
|
@ -43,12 +43,14 @@ class JoinFlow extends React.Component {
|
|||
uri: '/accounts/register_new_user/',
|
||||
method: 'post',
|
||||
useCsrf: true,
|
||||
/* eslint-disable quote-props */
|
||||
formData: {
|
||||
username: formData.username,
|
||||
email: formData.email,
|
||||
password: formData.password,
|
||||
birth_month: formData.birth_month,
|
||||
birth_year: formData.birth_year,
|
||||
'g-recaptcha-response': null,
|
||||
gender: (
|
||||
formData.gender === 'other' ?
|
||||
formData.genderOther :
|
||||
|
@ -59,6 +61,7 @@ class JoinFlow extends React.Component {
|
|||
is_robot: formData.yesno
|
||||
// csrfmiddlewaretoken: 'abc'
|
||||
}
|
||||
/* eslint-enable quote-props */
|
||||
}, (err, body, res) => {
|
||||
this.setState({waiting: false}, () => {
|
||||
let errStr = '';
|
||||
|
|
Loading…
Reference in a new issue