File size: 916 Bytes
62cfde8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | diff --git a/ui/src/pages/home/reviewer/Profile/index.tsx b/ui/src/pages/home/reviewer/Profile/index.tsx
index ab2ee0f1..9af28ce6 100644
--- a/ui/src/pages/home/reviewer/Profile/index.tsx
+++ b/ui/src/pages/home/reviewer/Profile/index.tsx
@@ -21,7 +21,7 @@ import React, { FormEvent, useState, useEffect } from 'react';
import { Form, Button, Stack, ButtonGroup } from 'react-bootstrap';
import { Trans, useTranslation } from 'react-i18next';
-import MD5 from 'md5';
+import { sha256 } from 'js-sha256';
import type { FormDataType } from '@/common/interface';
import { UploadImg, Avatar, Icon, ImgViewer } from '@/components';
@@ -273,7 +273,7 @@ const Index: React.FC = () => {
setFormData({ ...formData });
if (res.e_mail) {
const str = res.e_mail.toLowerCase().trim();
- const hash = MD5(str);
+ const hash = sha256(str);
setMailHash(hash);
}
});
|