|
@@ -1,6 +1,6 @@
|
|
|
import { httpApp } from "@/plugins/axiosIndex";
|
|
|
import { pickBy } from "lodash-es";
|
|
|
-import { object2QueryString, AESString } from "@/utils/utils";
|
|
|
+import { object2QueryString, encodePassword } from "@/utils/utils";
|
|
|
|
|
|
export function searchStudents({
|
|
|
enable,
|
|
@@ -32,7 +32,7 @@ export function saveStudent({
|
|
|
);
|
|
|
return httpApp.post("/api/admin/student/save", {
|
|
|
...data,
|
|
|
- ...(password.length > 0 ? { password: AESString(password) } : {}),
|
|
|
+ ...(password.length > 0 ? { password: encodePassword(password) } : {}),
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -43,7 +43,7 @@ export function toggleEnableStudent({ id, enable }) {
|
|
|
export function resetStudentPassword({ id, password }) {
|
|
|
return httpApp.post("/api/admin/student/updatePwd", {
|
|
|
id,
|
|
|
- password: AESString(password),
|
|
|
+ password: encodePassword(password),
|
|
|
});
|
|
|
}
|
|
|
|