1
0
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:
diminator 2015-07-10 15:52:09 +02:00
parent 8679a2446d
commit 6f7600fca2
3 changed files with 10 additions and 16 deletions

View File

@ -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() {

View File

@ -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');

View File

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