We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fd3899 commit 59d0b6cCopy full SHA for 59d0b6c
src/views/PageLogin.vue
@@ -1,7 +1,7 @@
1
<script setup lang="ts">
2
-import { watch } from 'vue'
+import { watch, ref } from 'vue'
3
import { useRouter } from 'vue-router'
4
-import { ref } from 'vue'
+import UIkit from 'uikit'
5
import type { AlertInterface, LoginForm } from '@userfrosting/sprinkle-account/types'
6
import { useAuthStore } from '@userfrosting/sprinkle-account/stores'
7
@@ -37,6 +37,14 @@ function sendLogin() {
37
loading.value = true
38
error.value = null
39
auth.login(form)
40
+ .then((user) => {
41
+ UIkit.notification({
42
+ message: 'Welcome back ' + user?.full_name + '!',
43
+ status: 'success',
44
+ pos: 'bottom-right',
45
+ timeout: 4000
46
+ })
47
48
.catch((err) => {
49
error.value = err
50
})
0 commit comments