client/general: fix certain error handlers

This commit is contained in:
rr-
2016-06-23 12:25:04 +02:00
parent c7f6663c36
commit 2f20bc1619
4 changed files with 7 additions and 7 deletions

View File

@ -23,8 +23,8 @@ class UserRegistrationController {
user.save().then(() => {
api.forget();
return api.login(e.detail.name, e.detail.password, false);
}, response => {
return Promise.reject(response.description);
}, errorMessage => {
return Promise.reject(errorMessage);
}).then(() => {
const ctx = router.show('/');
ctx.controller.showSuccess('Welcome aboard!');