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(){ getFormData(){
let data = {}; return {
for (let ref in this.refs.form.refs){ piece_id: parseInt(this.props.pieceId, 10)
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;
}, },
render() { render() {

View File

@ -105,10 +105,10 @@ let PasswordResetForm = React.createClass({
mixins: [Router.Navigation], mixins: [Router.Navigation],
getFormData(){ getFormData(){
let data = {}; return {
data.email = this.props.email; email: this.props.email,
data.token = this.props.token; token: this.props.token
return data; };
}, },
handleSuccess() { handleSuccess() {
this.transitionTo('pieces'); this.transitionTo('pieces');

View File

@ -98,12 +98,9 @@ let RegisterPiece = React.createClass( {
}, },
getFormData(){ getFormData(){
let data = {}; return {
for (let ref in this.refs.form.refs){ digital_work_key: this.state.digitalWorkKey
data[this.refs.form.refs[ref].props.name] = this.refs.form.refs[ref].state.value; };
}
data.digital_work_key = this.state.digitalWorkKey;
return data;
}, },
submitKey(key){ submitKey(key){