From 47a0c97f3d6159470a46b87eca3e4dd74e7e016e Mon Sep 17 00:00:00 2001 From: Wawilski Date: Sat, 16 Mar 2024 11:52:31 +0100 Subject: [PATCH] small commit but its for the big merge+ verif psswrd and confirm in login --- frontend/src/Apps/Login.vue | 29 +++++++++++++++++++++++++---- frontend/src/Apps/Profil.vue | 13 ++++--------- 2 files changed, 29 insertions(+), 13 deletions(-) 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 @@
-
+

{{i18n("login.guest.signin")}}

@@ -49,7 +68,7 @@
- +

{{i18n("login.guest.welcome")}}

@@ -77,7 +96,7 @@
- +
@@ -110,7 +129,9 @@
- +
diff --git a/frontend/src/Apps/Profil.vue b/frontend/src/Apps/Profil.vue index aaa34cb..0e208ca 100644 --- a/frontend/src/Apps/Profil.vue +++ b/frontend/src/Apps/Profil.vue @@ -6,15 +6,10 @@ /* const user = getUser(); */ - const user = getUser(); - - - - - /*reactive({ + const user=reactive({ profilePicture:"/Clyde.png", - lastName:"Ghost", - firstName:"Clyde", + lastname:"Ghost", + firstname:"Clyde", role:"student", address: "Radiator Springs", email:"ClydeGhost@gmail.com", @@ -93,7 +88,7 @@ function getPP(){
- {{user.firstName}} {{user.lastName.toUpperCase()}} + {{user.firstname}} {{user.lastname.toUpperCase()}}
E-mail: {{user.email}}