Skip to content
Snippets Groups Projects

fix: Fixed resetPassword method

Merged Lars Mikkel Lødeng Nilsen requested to merge fix/ResetPassword into dev
1 file
+ 3
8
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading