PR changes
This commit is contained in:
parent
6631c2644d
commit
ec5203f775
|
@ -53,8 +53,6 @@ async function passportCallback(
|
||||||
}
|
}
|
||||||
|
|
||||||
export const login = async (ctx: Ctx<LoginRequest>, next: any) => {
|
export const login = async (ctx: Ctx<LoginRequest>, next: any) => {
|
||||||
const tenantId = context.getTenantId()
|
|
||||||
console.log(tenantId)
|
|
||||||
const email = ctx.request.body.username
|
const email = ctx.request.body.username
|
||||||
|
|
||||||
const user = await userSdk.getUserByEmail(email)
|
const user = await userSdk.getUserByEmail(email)
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import { Response } from "node-fetch"
|
import { Response } from "node-fetch"
|
||||||
import { APIRequestOpts } from "../../../types"
|
import { APIRequestOpts } from "../../../types"
|
||||||
|
|
||||||
// TODO: Add to LicenseAPI
|
|
||||||
|
|
||||||
export default class BaseAPI {
|
export default class BaseAPI {
|
||||||
async doRequest(
|
async doRequest(
|
||||||
request: () => Promise<[Response, any]>,
|
request: () => Promise<[Response, any]>,
|
||||||
|
|
Loading…
Reference in New Issue