Various frontend fixes when connected user is a domain admin

This commit is contained in:
Antoine Nguyen
2025-06-11 18:16:00 +02:00
parent 820045582a
commit d2c44b1c39
20 changed files with 162 additions and 74 deletions
+5
View File
@@ -170,6 +170,10 @@ export const useAuthStore = defineStore('auth', () => {
})
}
async function updatePassword(data) {
return accountApi.setPassword(data)
}
function finalizeTFASetup(pinCode) {
return accountApi.finalizeTFASetup(pinCode).then((response) => {
const cookie = Cookies.withAttributes({ sameSite: 'strict' })
@@ -198,6 +202,7 @@ export const useAuthStore = defineStore('auth', () => {
login,
$reset,
updateAccount,
updatePassword,
finalizeTFASetup,
}
})