Skip to content

Commit 9a77e45

Browse files
committed
fix: correct variable name from rasKey to rsaKey in UserDrawer.vue
1 parent 96f51d9 commit 9a77e45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/views/system/user-manage/component/UserDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ const submit = async (formEl: FormInstance | undefined) => {
431431
})
432432
} else {
433433
params.defaultPermission = defaultPermission.value
434-
const publicKey = forge.pki.publicKeyFromPem(user.rasKey)
434+
const publicKey = forge.pki.publicKeyFromPem(user.rsaKey)
435435
const utf8Bytes = forge.util.encodeUtf8(params.password)
436436
const encrypted = publicKey.encrypt(utf8Bytes, 'RSAES-PKCS1-V1_5')
437437
params.password = forge.util.encode64(encrypted)

0 commit comments

Comments
 (0)