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(() => { ...@@ -91,16 +91,11 @@ const canResetPassword = computed(() => {
const resetPassword = async () => { const resetPassword = async () => {
isModalOpen.value = true isModalOpen.value = true
const resetPasswordDTO = {
resetID: resetID.value,
userID: userID.value,
newPassword: newPassword.value
}
try { try {
await axios.post('http://localhost:8080/forgotPassword/resetPassword', { await axios.post('http://localhost:8080/forgotPassword/resetPassword', {
method: 'POST', resetID: resetID.value,
headers: { 'Content-Type': 'application/json' }, userID: userID.value,
body: JSON.stringify(resetPasswordDTO) newPassword: newPassword.value
}) })
} catch (error) { } catch (error) {
const err = error as 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