Frontend: Revert change in session.js
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
33156b5bd7
commit
ed1806e17b
1 changed files with 4 additions and 7 deletions
|
@ -207,13 +207,10 @@ export default class Session {
|
|||
|
||||
return Api.post("session", {username, password, token}).then(
|
||||
(resp) => {
|
||||
return new Promise(resolve => {
|
||||
this.setConfig(resp.data.config);
|
||||
this.setId(resp.data.id);
|
||||
this.setData(resp.data.data);
|
||||
this.sendClientInfo();
|
||||
resolve();
|
||||
});
|
||||
this.setConfig(resp.data.config);
|
||||
this.setId(resp.data.id);
|
||||
this.setData(resp.data.data);
|
||||
this.sendClientInfo();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue