Skip to content

Commit 5dd8d32

Browse files
authored
Merge pull request #527 from raheeliftikhar5/auth-orgId
Send orgID in login/register
2 parents 9ee508e + 4c99f6e commit 5dd8d32

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

client/packages/lowcoder/src/api/userApi.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ interface FormLoginRequest extends CommonLoginParam {
2929
password: string;
3030
register: boolean;
3131
authId?: string;
32+
orgId?: string;
3233
}
3334

3435
export interface GetUserResponse extends ApiResponse {

client/packages/lowcoder/src/pages/userAuth/formLogin.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export default function FormLogin(props: FormLoginProps) {
4646
password: password,
4747
invitationId: invitationId,
4848
source: UserConnectionSource.email,
49+
orgId: props.organizationId,
4950
authId,
5051
}),
5152
false,

client/packages/lowcoder/src/pages/userAuth/register.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ function UserRegister() {
6262
password: password,
6363
invitationId,
6464
source: UserConnectionSource.email,
65+
orgId: organizationId,
6566
authId,
6667
}),
6768
false,

0 commit comments

Comments
 (0)