Browse Source

fix: missing try...catch

pull/9397/head
Pranav C 3 months ago
parent
commit
34f7e2c26f
  1. 10
      packages/nc-gui/pages/forgot-password.vue

10
packages/nc-gui/pages/forgot-password.vue

@ -42,9 +42,13 @@ async function resetPassword() {
resetError()
await api.auth.passwordForgot(form).then(() => {
success.value = true
})
try {
await api.auth.passwordForgot(form).then(() => {
success.value = true
})
} catch {
// ignore since error value is set by useApi and will be displayed in UI
}
}
function resetError() {

Loading…
Cancel
Save