|
@@ -1,5 +1,6 @@
|
|
|
import request from '@/utils/request';
|
|
|
import { AxiosPromise } from 'axios';
|
|
|
+import { encryptWithAes, parseAesKey } from '@/utils/crypto';
|
|
|
|
|
|
// pc端固定客户端授权id
|
|
|
const clientId = import.meta.env.VITE_APP_CLIENT_ID;
|
|
@@ -10,6 +11,8 @@ export function login(data) {
|
|
|
clientId: data.clientId || clientId,
|
|
|
grantType: data.grantType || 'password'
|
|
|
};
|
|
|
+ params.password = encryptWithAes(params.password, parseAesKey(params.uuid));
|
|
|
+
|
|
|
return request({
|
|
|
url: '/api/auth/login',
|
|
|
headers: {
|