|
|
|
@ -1,4 +1,5 @@ |
|
|
|
import request from '@/router/axios'; |
|
|
|
import request from '@/router/axios'; |
|
|
|
|
|
|
|
import website from "@/config/website"; |
|
|
|
|
|
|
|
|
|
|
|
export const loginByUsername = (tenantId, username, password, type, key, code) => request({ |
|
|
|
export const loginByUsername = (tenantId, username, password, type, key, code) => request({ |
|
|
|
url: '/api/blade-auth/oauth/token', |
|
|
|
url: '/api/blade-auth/oauth/token', |
|
|
|
@ -12,7 +13,7 @@ export const loginByUsername = (tenantId, username, password, type, key, code) = |
|
|
|
tenantId, |
|
|
|
tenantId, |
|
|
|
username, |
|
|
|
username, |
|
|
|
password, |
|
|
|
password, |
|
|
|
grant_type: "captcha", |
|
|
|
grant_type: (website.captchaMode ? "captcha" : "password"), |
|
|
|
scope: "all", |
|
|
|
scope: "all", |
|
|
|
type |
|
|
|
type |
|
|
|
} |
|
|
|
} |
|
|
|
|