Skip to content

Commit

Permalink
improve login error notification
Browse files Browse the repository at this point in the history
  • Loading branch information
devincowan committed Jan 10, 2024
1 parent 92d1b6d commit ca003ab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/frontend/src/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ export async function logIn(callback) {
})
callback?.()
} else {
alert('error logging in')
console.log(userinfo.status, userinfo.statusText)
alertStore.displayAlert({
title: 'Error Logging In',
text: `We had difficulty logging you in. If you continue to encounter this issue, please contact [email protected].`,
type: 'success',
closable: true,
duration: 3
})
}
event.source.close()
})
Expand Down

0 comments on commit ca003ab

Please sign in to comment.