diff options
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/auth-page.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/auth-page.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/auth-page.js b/packages/meshbay-hub/src/meshbay_hub/static/auth-page.js index 9ded87b..d4dc5a4 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/auth-page.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/auth-page.js @@ -157,6 +157,12 @@ export function LoginPage({ onLogin }) { } catch (err) { if (err.message === 'email_verification_required') { setPendingVerif(true); + } else if (err.message === 'account_locked') { + setError(t('login.locked', { + minutes: Math.max(1, Math.ceil((err.retryAfter || 60) / 60)), + })); + } else if (err.message === 'Invalid credentials') { + setError(t('login.invalid')); } else { setError(err.message); } |