libushang 3 semanas atrás
pai
commit
64366b813f
2 arquivos alterados com 3 adições e 1 exclusões
  1. 2 1
      src/api/login.ts
  2. 1 0
      src/api/types.ts

+ 2 - 1
src/api/login.ts

@@ -15,7 +15,8 @@ export function login(data: LoginData): AxiosPromise<LoginResult> {
   const params = {
     ...data,
     clientId: data.clientId || clientId,
-    grantType: data.grantType || 'password'
+    grantType: data.grantType || 'password',
+    fromSystem: data.fromSystem || 'yjdp'
   };
   params.password = encryptWithAes(params.password, parseAesKey(params.uuid));
 

+ 1 - 0
src/api/types.ts

@@ -26,6 +26,7 @@ export interface LoginData {
   uuid?: string;
   clientId: string;
   grantType: string;
+  fromSystem?: string;
 }
 
 /**