diff --git a/frontend/src/Apps/Login.vue b/frontend/src/Apps/Login.vue index 6efd8dc..5004577 100644 --- a/frontend/src/Apps/Login.vue +++ b/frontend/src/Apps/Login.vue @@ -3,6 +3,9 @@ import i18n from '@/i18n.js' import { login , register } from '@/rest/Users.js' import { uploadProfilePicture } from '@/rest/uploads.js' + import {toast} from 'vue3-toastify' + import 'vue3-toastify/dist/index.css'; + const loginPage= ref(true) const page = ref(0) @@ -20,6 +23,22 @@ const imageSaved = ref(false) const ppData = ref(false) + + function goBackHome(){ + window.location.href='#home' + } + + function verifyInputs(){ + if(password.value==passwordConfirm.value){ + page.value++; + return toast('Password and Confirm Password are correct.', { + + type: "success",}); + } + else{ + return toast('Password and Confirm Password are different',{type: "error",}); + } + } @@ -27,7 +46,7 @@