mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-26 11:14:23 +01:00
Various frontend fixes when connected user is a domain admin
This commit is contained in:
@@ -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,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user