refs #6930 feat: call shareToken endpoint
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2024-02-28 08:33:26 +01:00
parent d866754468
commit bddfe8f9d7
1 changed files with 8 additions and 1 deletions

View File

@ -30,8 +30,15 @@ async function onSubmit() {
const { data } = await axios.post('Accounts/login', params);
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({
message: t('login.loginSuccess'),