mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-25 07:57:54 +00:00
added region to login
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsEmail, IsNotEmpty, IsString } from 'class-validator';
|
||||
import { IsEmail, IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
||||
import { IsPasswordStrong } from 'src/validators/password.validator';
|
||||
|
||||
export class UserSignUpDto {
|
||||
@@ -38,4 +38,8 @@ export class UserSignUpDto {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
public lastName: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
public regionUuid: string;
|
||||
}
|
||||
|
||||
@@ -11,4 +11,9 @@ export class UserLoginDto {
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
password: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
regionUuid?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user