mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
login errors + request obfuscated
This commit is contained in:
parent
8679a2446d
commit
6f7600fca2
@ -16,12 +16,9 @@ let AccordionListItemCreateEditions = React.createClass({
|
||||
},
|
||||
|
||||
getFormData(){
|
||||
let data = {};
|
||||
for (let ref in this.refs.form.refs){
|
||||
data[this.refs.form.refs[ref].props.name] = this.refs.form.refs[ref].state.value;
|
||||
}
|
||||
data.piece_id = parseInt(this.props.pieceId, 10);
|
||||
return data;
|
||||
return {
|
||||
piece_id: parseInt(this.props.pieceId, 10)
|
||||
};
|
||||
},
|
||||
|
||||
render() {
|
||||
|
@ -105,10 +105,10 @@ let PasswordResetForm = React.createClass({
|
||||
mixins: [Router.Navigation],
|
||||
|
||||
getFormData(){
|
||||
let data = {};
|
||||
data.email = this.props.email;
|
||||
data.token = this.props.token;
|
||||
return data;
|
||||
return {
|
||||
email: this.props.email,
|
||||
token: this.props.token
|
||||
};
|
||||
},
|
||||
handleSuccess() {
|
||||
this.transitionTo('pieces');
|
||||
|
@ -98,12 +98,9 @@ let RegisterPiece = React.createClass( {
|
||||
},
|
||||
|
||||
getFormData(){
|
||||
let data = {};
|
||||
for (let ref in this.refs.form.refs){
|
||||
data[this.refs.form.refs[ref].props.name] = this.refs.form.refs[ref].state.value;
|
||||
}
|
||||
data.digital_work_key = this.state.digitalWorkKey;
|
||||
return data;
|
||||
return {
|
||||
digital_work_key: this.state.digitalWorkKey
|
||||
};
|
||||
},
|
||||
|
||||
submitKey(key){
|
||||
|
Loading…
Reference in New Issue
Block a user