Skip to content

Commit

Permalink
fix(LoginPasswordForm): incorrect password message not shown
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Dec 23, 2024
1 parent f063425 commit 2dfa540
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/LoginPasswordForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ export default defineComponent({
if (!isOnline.value) {
emit('error', t('connection.offline'))
router.push({ name: 'Nodes' })
} else if (err?.message === 'Invalid password') {
emit('error', t('login_via_password.incorrect_password'))
} else if (isAxiosError(err)) {
emit('error', t('login.invalid_passphrase'))
} else if (isAllNodesOfflineError(err)) {
Expand Down

0 comments on commit 2dfa540

Please sign in to comment.