diff --git a/src/components/Configuration/ConfigurationSteps/SuitableChallenges.vue b/src/components/Configuration/ConfigurationSteps/SuitableChallenges.vue index ef0d093bcdf1af8d832b5923de4aa0f2ec3b80e4..a81fa4199e19bbfbea94e18f8b224b73e7ef947e 100644 --- a/src/components/Configuration/ConfigurationSteps/SuitableChallenges.vue +++ b/src/components/Configuration/ConfigurationSteps/SuitableChallenges.vue @@ -64,13 +64,15 @@ const onClick = async () => { */ const signUpPayLoad = { - "commitment": useConfigurationStore().getCommitment, - "experience": useConfigurationStore().getExperience, - "challenges": useConfigurationStore().getChallenges, "firstName": useUserInfoStore().getFirstName, "lastName": useUserInfoStore().getLastname, "email": useUserInfoStore().getEmail, "password": useUserInfoStore().getPassword, + "configuration": { + "commitment": useConfigurationStore().getCommitment, + "experience": useConfigurationStore().getExperience, + "challenges": useConfigurationStore().getChallenges + } }; let response = await AuthenticationService.signup({ requestBody: signUpPayLoad }); diff --git a/src/components/Login/LoginForm.vue b/src/components/Login/LoginForm.vue index 8e502fa066902eae0a3040410ff3052648cdf2bd..51d0c18846013b298212d27285bf0823958262da 100644 --- a/src/components/Login/LoginForm.vue +++ b/src/components/Login/LoginForm.vue @@ -62,6 +62,9 @@ const handleSubmit = async () => { email: emailRef.value, role: response.role, }); + + console.log() + await router.push({ name: 'home' }); } catch (error: any) { errorMsg.value = handleUnknownError(error); diff --git a/src/views/BudgetView.vue b/src/views/BudgetView.vue index 65265d0a57aa6419771757f6800517aa1b54db50..0297c102ccddc3c1f463cf93fb3049b5f1901b1c 100644 --- a/src/views/BudgetView.vue +++ b/src/views/BudgetView.vue @@ -323,5 +323,6 @@ i { overflow-y: auto; overflow-x: hidden; max-height: 100vh; +} </style> \ No newline at end of file