mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 11:26:52 +08:00
Feat/account not found (#10804)
This commit is contained in:
@@ -198,9 +198,9 @@ class AccountService:
|
||||
) -> Account:
|
||||
"""create account"""
|
||||
if not FeatureService.get_system_features().is_allow_register and not is_setup:
|
||||
from controllers.console.error import NotAllowedRegister
|
||||
from controllers.console.error import AccountNotFound
|
||||
|
||||
raise NotAllowedRegister()
|
||||
raise AccountNotFound()
|
||||
account = Account()
|
||||
account.email = email
|
||||
account.name = name
|
||||
|
||||
Reference in New Issue
Block a user