feat: 完善 AI Studio Key 自动化流程

This commit is contained in:
2026-09-23 15:39:20 +08:00
parent f41a979462
commit 04309f60c7
45 changed files with 6600 additions and 119 deletions
@@ -0,0 +1,17 @@
'use strict';
const assert = require('assert');
const { _private } = require('../src/services/change_2fa_service');
assert.strictEqual(
_private.shouldEnsureTwoStepVerificationEnabled(true),
false,
'替换已有 Authenticator 后不应重复检查两步验证开关',
);
assert.strictEqual(
_private.shouldEnsureTwoStepVerificationEnabled(false),
true,
'首次添加 Authenticator 后仍必须检查并开启两步验证',
);
console.log('change_2fa_existing_authenticator_fast_path.test.js: PASS');