feature implement login final changes

This commit is contained in:
Edd
2025-12-20 22:26:22 +00:00
parent a566387998
commit 2734e25cce
2 changed files with 23 additions and 25 deletions
+7 -8
View File
@@ -66,14 +66,13 @@ const formData = ref({
const handleSubmit = async () => {
const promise = authStore.login(formData.value)
toast.promise(promise, {
loading: 'Calling API',
success: (user) => {
router.push('/')
return `Login Successful - ${user.name}`
},
error: (error) =>
error.response?.data?.message
loading: 'Calling API',
success: (user) => {
router.push('/')
return `Login Successful - ${user.name}`
},
error: (error) =>
error.response?.data?.message
})
router.push('/')
}
</script>