mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 07:34:54 +00:00
added google login
This commit is contained in:
@ -16,4 +16,8 @@ export class UserLoginDto {
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
regionUuid?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
googleCode?: string;
|
||||
}
|
||||
|
||||
@ -122,6 +122,7 @@ export class UserAuthService {
|
||||
return { uuid: role.uuid, type: role.roleType.type };
|
||||
}),
|
||||
sessionId: session[1].uuid,
|
||||
googleCode: data.googleCode,
|
||||
});
|
||||
} catch (error) {
|
||||
throw new BadRequestException('Invalid credentials');
|
||||
|
||||
Reference in New Issue
Block a user