forked from verdnatura/salix-front
refs #6930 feat: call shareToken endpoint
This commit is contained in:
parent
d866754468
commit
bddfe8f9d7
|
@ -30,8 +30,15 @@ async function onSubmit() {
|
||||||
const { data } = await axios.post('Accounts/login', params);
|
const { data } = await axios.post('Accounts/login', params);
|
||||||
|
|
||||||
if (!data) return;
|
if (!data) return;
|
||||||
|
const {
|
||||||
|
data: { multimediaToken },
|
||||||
|
} = await axios.get('VnUsers/ShareToken', {
|
||||||
|
headers: { Authorization: data.token },
|
||||||
|
});
|
||||||
|
|
||||||
await session.login(data.token, data.multimediaToken.id, keepLogin.value);
|
if (!multimediaToken) return;
|
||||||
|
|
||||||
|
await session.login(data.token, multimediaToken.id, keepLogin.value);
|
||||||
|
|
||||||
quasar.notify({
|
quasar.notify({
|
||||||
message: t('login.loginSuccess'),
|
message: t('login.loginSuccess'),
|
||||||
|
|
Loading…
Reference in New Issue