mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 15:08:06 +08:00
Merge branch 'main' into feat/new-login
* main: (40 commits) feat: allow users to specify timeout for text generations and workflows by environment variable (#8395) Fix: operation postion of answer in logs (#8411) fix: when the variable does not exist, an error should be prompted (#8413) fix(workflow): the answer node after the iteration node containing the answer was output prematurely (#8419) fix:logs and rm unused codes in CacheEmbedding (#8409) fix: resolve runtime error when self.folder is None (#8401) Fix: Support Bedrock cross region inference #8190 (Update Model name to distinguish between different region groups) (#8402) fix(docker): aliyun oss path env key (#8394) fix: pyproject.toml typo (#8396) fix: o1-mini 65563 -> 65536 (#8388) fix: sandbox issue related httpx and requests (#8397) chore: improve usage of striping prefix or suffix of string with Ruff 0.6.5 (#8392) fix (#8322 followup): resolve the violation of pylint rules (#8391) chore: refurish python code by applying Pylint linter rules (#8322) support hunyuan-turbo (#8372) chore: update firecrawl scrape to V1 api (#8367) fix(workflow): both parallel and single branch errors occur in if-else (#8378) fix: edit load balancing not pass id (#8370) fix: add before send to remove langfuse defaultErrorResponse (#8361) fix: when edit load balancing config not pass the empty filed value hidden (#8366) ...
This commit is contained in:
@ -101,7 +101,7 @@ class OAuthCallback(Resource):
|
||||
)
|
||||
|
||||
# Check account status
|
||||
if account.status == AccountStatus.BANNED.value or account.status == AccountStatus.CLOSED.value:
|
||||
if account.status in {AccountStatus.BANNED.value, AccountStatus.CLOSED.value}:
|
||||
return {"error": "Account is banned or closed."}, 403
|
||||
|
||||
if account.status == AccountStatus.PENDING.value:
|
||||
|
||||
Reference in New Issue
Block a user