mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-24 10:54:05 +01:00
Faster frontend authentication.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<script setup>
|
||||
import { onMounted } from 'vue'
|
||||
import { useAuthStore } from '@/stores'
|
||||
import { useModoboaTheme } from '@/composables/theme'
|
||||
|
||||
@@ -10,10 +9,7 @@ const props = defineProps({
|
||||
const authStore = useAuthStore()
|
||||
const { enableTheme } = useModoboaTheme()
|
||||
|
||||
onMounted(() => {
|
||||
authStore.completeLogin(props.redirectUrl)
|
||||
})
|
||||
|
||||
await authStore.completeLogin(props.redirectUrl)
|
||||
await enableTheme()
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user