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