Skip to content
Snippets Groups Projects
Commit 5f3ca71f authored by Lars Mikkel Lødeng Nilsen's avatar Lars Mikkel Lødeng Nilsen
Browse files

fix: Fixed resetPassword method

parent 30936fe3
No related branches found
No related tags found
3 merge requests!66Final merge,!35fix: Fixed resetPassword method,!4Pipeline fix
Pipeline #280135 passed with warnings
......@@ -91,16 +91,11 @@ const canResetPassword = computed(() => {
const resetPassword = async () => {
isModalOpen.value = true
const resetPasswordDTO = {
resetID: resetID.value,
userID: userID.value,
newPassword: newPassword.value
}
try {
await axios.post('http://localhost:8080/forgotPassword/resetPassword', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(resetPasswordDTO)
resetID: resetID.value,
userID: userID.value,
newPassword: newPassword.value
})
} catch (error) {
const err = error as Error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment