server/general: flatten responses

This commit is contained in:
rr-
2016-05-30 22:20:42 +02:00
parent d0314813cb
commit 8d1e23aa63
29 changed files with 155 additions and 261 deletions

View File

@ -134,7 +134,7 @@ class Api {
'auth',
{'user': userName, 'password': userPassword},
options);
this.user = response.user;
this.user = response;
resolve();
events.notify(events.Authentication);
}).catch(response => {