mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-20 06:34:55 +00:00
(fix) 修复修改密码问题 (#2060)
Co-authored-by: williamhliu <williamhliu@tencent.com>
This commit is contained in:
@@ -3,7 +3,8 @@ import { Form, Input, message, Modal } from 'antd';
|
||||
import { useBoolean } from 'ahooks';
|
||||
import { changePassword } from '@/services/user';
|
||||
import { pick } from 'lodash';
|
||||
import { encryptPassword, encryptKey } from '@/utils/utils';
|
||||
import { encryptPassword } from '@/utils/utils';
|
||||
import CryptoJS from 'crypto-js';
|
||||
|
||||
export interface IRef {
|
||||
open: () => void;
|
||||
@@ -14,6 +15,7 @@ const ChangePasswordModal = forwardRef<IRef>((_, ref) => {
|
||||
const [form] = Form.useForm();
|
||||
const [open, { setTrue: openModal, setFalse: closeModal }] = useBoolean(false);
|
||||
const [confirmLoading, { set: setConfirmLoading }] = useBoolean(false);
|
||||
const encryptKey = CryptoJS.enc.Utf8.parse('supersonic@2024');
|
||||
|
||||
useImperativeHandle(ref, () => ({
|
||||
open: () => {
|
||||
|
||||
Reference in New Issue
Block a user