only keep totp endpoint (#3704)

This commit is contained in:
LawyZheng
2025-10-15 01:28:42 +08:00
committed by GitHub
parent dc832ea6db
commit 44a2e34864
4 changed files with 22 additions and 101 deletions

View File

@@ -54,7 +54,7 @@ STEP_PREFIX = "stp"
TASK_GENERATION_PREFIX = "tg"
TASK_PREFIX = "tsk"
TASK_RUN_PREFIX = "tr"
OTP_CODE_PREFIX = "otp"
TOTP_CODE_PREFIX = "totp"
USER_PREFIX = "u"
WORKFLOW_PARAMETER_PREFIX = "wp"
WORKFLOW_PERMANENT_ID_PREFIX = "wpid"
@@ -169,9 +169,9 @@ def generate_ai_suggestion_id() -> str:
return f"{AI_SUGGESTION_PREFIX}_{int_id}"
def generate_otp_code_id() -> str:
def generate_totp_code_id() -> str:
int_id = generate_id()
return f"{OTP_CODE_PREFIX}_{int_id}"
return f"{TOTP_CODE_PREFIX}_{int_id}"
def generate_action_id() -> str: