@liujitcn/kratos-taro-app-system 0.0.66 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git@github.com:liujitcn/kratos-admin.git"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.0.
|
|
10
|
+
"version": "0.0.67",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"files": [
|
|
13
13
|
"dist",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@tarojs/components": "4.2.1",
|
|
39
39
|
"@tarojs/taro": "4.2.1",
|
|
40
40
|
"react": "18.3.1",
|
|
41
|
-
"@liujitcn/kratos-taro-app-core": "^0.0.
|
|
42
|
-
"@liujitcn/kratos-taro-app-ui": "^0.0.
|
|
41
|
+
"@liujitcn/kratos-taro-app-core": "^0.0.67",
|
|
42
|
+
"@liujitcn/kratos-taro-app-ui": "^0.0.67"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "pnpm run build:entries && pnpm pack --pack-destination ../../../dist/npm",
|
|
@@ -27,6 +27,9 @@ export class NotificationServiceImpl implements NotificationService {
|
|
|
27
27
|
const data = Object.fromEntries(
|
|
28
28
|
Object.entries(request).filter(([, value]) => value !== undefined),
|
|
29
29
|
)
|
|
30
|
+
// 后端 buf.validate 要求 page_num>=1;游标模式下该值不参与查询,补默认值保证校验通过。
|
|
31
|
+
if (data.page_num === undefined) data.page_num = 1
|
|
32
|
+
if (data.page_size === undefined) data.page_size = 20
|
|
30
33
|
return http<Partial<PageNotificationResponse>>({
|
|
31
34
|
url: NOTIFICATION_URL,
|
|
32
35
|
method: 'GET',
|
package/src/locales/README.md
CHANGED
|
@@ -9,9 +9,8 @@ import {
|
|
|
9
9
|
getWebAuthnAssertion,
|
|
10
10
|
} from '@liujitcn/kratos-taro-app-core/utils/webauthn'
|
|
11
11
|
import {
|
|
12
|
-
PASSWORD_CRYPTO_SCENE,
|
|
13
12
|
encryptPassword,
|
|
14
|
-
} from '@liujitcn/kratos-taro-app-core/utils/
|
|
13
|
+
} from '@liujitcn/kratos-taro-app-core/utils/secretCrypto'
|
|
15
14
|
import './PasswordVerifyDialog.scss'
|
|
16
15
|
|
|
17
16
|
/** MFA 通用操作弹窗属性。 */
|
|
@@ -95,10 +94,7 @@ export default function PasswordVerifyDialog({
|
|
|
95
94
|
setLoading(true)
|
|
96
95
|
setErrorMessage('')
|
|
97
96
|
try {
|
|
98
|
-
const password = await encryptPassword(
|
|
99
|
-
setupPasswordInput,
|
|
100
|
-
PASSWORD_CRYPTO_SCENE.PASSWORD_CRYPTO_SCENE_MFA,
|
|
101
|
-
)
|
|
97
|
+
const password = await encryptPassword(setupPasswordInput)
|
|
102
98
|
const result = await defMfaService.BeginMfaSetup({ password, setup_ticket: '' })
|
|
103
99
|
setSetupTicket(result.setup_ticket)
|
|
104
100
|
setSetupMethod(result.method || 'totp')
|
|
@@ -135,10 +131,7 @@ export default function PasswordVerifyDialog({
|
|
|
135
131
|
setLoading(true)
|
|
136
132
|
setErrorMessage('')
|
|
137
133
|
try {
|
|
138
|
-
const password = await encryptPassword(
|
|
139
|
-
disablePasswordInput,
|
|
140
|
-
PASSWORD_CRYPTO_SCENE.PASSWORD_CRYPTO_SCENE_MFA,
|
|
141
|
-
)
|
|
134
|
+
const password = await encryptPassword(disablePasswordInput)
|
|
142
135
|
if (disableRecoveryCode.trim()) {
|
|
143
136
|
await defMfaService.DisableMfa({
|
|
144
137
|
password,
|