mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-18 08:20:59 +00:00
5084f2391d
* fix(auth): support dynamic OSS callbacks and LangBot Account copy * style(web): format LangBot Account copy --------- Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com>
21 lines
613 B
Python
21 lines
613 B
Python
from __future__ import annotations
|
|
|
|
|
|
class AccountEmailMismatchError(Exception):
|
|
def __str__(self) -> str:
|
|
return 'Account email mismatch'
|
|
|
|
|
|
class SpaceAccountNotRegisteredError(AccountEmailMismatchError):
|
|
code = 'space_account_not_registered'
|
|
|
|
def __str__(self) -> str:
|
|
return 'No Account is registered for this Space email'
|
|
|
|
|
|
class SpaceAccountBindingRequiredError(AccountEmailMismatchError):
|
|
code = 'space_account_binding_required'
|
|
|
|
def __str__(self) -> str:
|
|
return 'This local account must bind a LangBot Account from Account settings before LangBot Account login'
|