登录注册体系的源码级硬切换

This commit is contained in:
kate522 committed 2026-08-23 20:30:01 +08:00
1 parent 73fcd4ed72
commit af52f9e94d
72 files changed
+1666 -6576

No files matched your search

+5 -7
View File
@@ -332,7 +332,6 @@ test('profile save uses AJAX rehydrate and a fixed-id notyf flow without query f
test('settings actions use rehydrated fixed-id notyf flows', () => {
const userCenter = read('assets/js/routes/user-center.js');
const signRegister = read('assets/js/sign-register.js');
const settings = read('inc/helpers/user-center-renderers/profile-settings.php');
const context = read('inc/helpers/aksrt-user-center.php');
const page = read('templates/pages/page-profile.php');
@@ -354,12 +353,11 @@ test('settings actions use rehydrated fixed-id notyf flows', () => {
assert.match(userCenter, /oauth_bound[\s\S]*?notyf\([^;]+?'success'\)[\s\S]*?history\.replaceState/);
assert.doesNotMatch(userCenter, /oauth_unbound/);
assert.match(signRegister, /scene === 'bind_phone'[\s\S]*?'aksrt-settings-phone-code-toast'/);
assert.match(signRegister, /notyf\('正在发送验证码…', 'load', '', toastId\)/);
assert.match(signRegister, /notyf\([^;]+?'success', 5, toastId\)/);
assert.match(signRegister, /notyf\([^;]+?'danger', 5, toastId\)/);
assert.match(signRegister, /register\('aksrt-sms-buttons',[\s\S]*?initSmsButtons\(root\)/);
assert.match(signRegister, /aksrtSmsInitialized/);
assert.match(userCenter, /'aksrt-settings-phone-code-toast'/);
assert.match(userCenter, /notyf\('正在发送验证码…', 'load', '', toastId\)/);
assert.match(userCenter, /notyf\([^;]+?'success', 5, toastId\)/);
assert.match(userCenter, /notyf\([^;]+?'danger', 5, toastId\)/);
assert.match(userCenter, /\/user\/phone-code/);
assert.match(settings, /require \$dir \. '\/profile-account-modals\.php';/);
assert.doesNotMatch(context, /account_modals_html|'account-modals'/);