get the info for security challenge
This commit is contained in:
parent
ed9c847669
commit
191a973688
|
@ -65,19 +65,22 @@ export default Ember.Component.extend({
|
||||||
self.set('transactionInProgress', false);
|
self.set('transactionInProgress', false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if(data.status == 'succeeded') {
|
||||||
|
ajax('/users/hp', { method: 'get' }).then(data => {
|
||||||
|
let params = Ember.assign(data, {
|
||||||
|
email: self.get('email'),
|
||||||
|
username: self.get('username'),
|
||||||
|
name: self.get('name'),
|
||||||
|
password: self.get('password')
|
||||||
|
});
|
||||||
|
|
||||||
let params = {
|
ajax('/users', { data: params, method: 'post' }).then(data => {
|
||||||
email: self.get('email'),
|
self.set('success', data.success);
|
||||||
username: self.get('username'),
|
self.set('transactionInProgress', false);
|
||||||
name: self.get('name'),
|
self.set('result', self.get('result') + data.message);
|
||||||
password: self.get('password')
|
});
|
||||||
};
|
});
|
||||||
|
}
|
||||||
ajax('/users', { data: params, method: 'post' }).then(data => {
|
|
||||||
self.set('success', data.success);
|
|
||||||
self.set('transactionInProgress', false);
|
|
||||||
self.set('result', self.get('result') + data.message);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue