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(){
|
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() {
|
||||||
|
@ -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');
|
||||||
|
@ -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){
|
||||||
|
Loading…
Reference in New Issue
Block a user