@@ -117,9 +117,11 @@ export default {
this.login(data.user,data.authorisation.token);
- this.toast.success('Login Successfully....');
- this.$router.push('/onboarding');
+ this.$toast.success('Login Successfully....');
+ this.$router.push(this.localePath('/onboarding'));
+ }else{
+ this.$toast.error(`Email or password is incorrect.`);
}
}).catch((error)=>{
this.loading=false;
@@ -127,7 +129,8 @@ export default {
if(error.response.status==401){
this.auth_error=true;
- this.toast.error(`Email or password is incorrect.`);
+ this.$toast.error(`Email or password is incorrect.`);
+
}
if(error.response.status==422){
this.errors = error.response.data.errors;
diff --git a/pages/auth/signup.vue b/pages/auth/signup.vue
index 1c017c2..addbee8 100755
--- a/pages/auth/signup.vue
+++ b/pages/auth/signup.vue
@@ -28,7 +28,7 @@
Sign Up
-
Helo , Beautiful!
+
Hello, Beautiful!
Mindboost helps you block out distracting noise with concentration-boosting music, increasing your productivity by up to 35%.
@@ -94,7 +94,15 @@ import backgroundImagePath from '~/assets/image/login4.png'
import {useUserStore} from '@/stores/user';
import {mapState,mapActions} from "pinia";
export default {
+ setup() {
+ const { t } = useI18n()
+ const localePath = useLocalePath()
+ return {
+ t,
+ localePath,
+ }
+ },
computed:{
...mapState(useUserStore,['user'])
},
@@ -122,12 +130,15 @@ export default {
console.log(data);
this.loading=false;
+ this.$toast.success("Signup successfully....");
this.login(data.user,data.authorisation.token)
- this.$router.push('/onboarding');
+ this.$router.push(this.localePath('/onboarding'));
+
}).catch((error)=>{
this.loading=false;
if(error.response.status==422){
this.errors = error.response.data.errors;
+ this.$toast.error(error.response.data.message);
}
})
diff --git a/pages/letsgo.vue b/pages/letsgo.vue
index eebcab5..0538457 100755
--- a/pages/letsgo.vue
+++ b/pages/letsgo.vue
@@ -2,7 +2,7 @@
- NEXT
+ NEXT