Added dto for profile page

This commit is contained in:
Mutzi 2022-08-25 17:52:23 +02:00
parent 06fffbee2f
commit 10cd782a52
2 changed files with 11 additions and 6 deletions

View File

@ -23,18 +23,22 @@ export class LoginRequest extends SignUpRequest {
otp?: string; otp?: string;
} }
export class TfaComplete extends BaseRequest {
@IsNotEmpty()
@IsString()
code: string;
}
export class TfaSetup extends BaseRequest { export class TfaSetup extends BaseRequest {
@IsNotEmpty() @IsNotEmpty()
@IsBoolean() @IsBoolean()
mail: boolean; mail: boolean;
} }
export class TfaComplete extends BaseRequest {
@IsNotEmpty()
@IsBoolean()
mail: boolean;
@IsNotEmpty()
@IsString()
code: string;
}
export class ChangePasswordRequest extends BaseRequest { export class ChangePasswordRequest extends BaseRequest {
@IsNotEmpty() @IsNotEmpty()
@IsString() @IsString()

View File

@ -36,4 +36,5 @@ export class RequestEmailTfaResponse extends SuccessResponse {}
export class TfaCompletedResponse extends SuccessResponse {} export class TfaCompletedResponse extends SuccessResponse {}
export class SignupResponse extends SuccessResponse {} export class SignupResponse extends SuccessResponse {}
export class ChangePasswordResponse extends SuccessResponse {} export class ChangePasswordResponse extends SuccessResponse {}
export class LogoutAllResponse extends SuccessResponse {}
export class RefreshResponse extends LoginResponse {} export class RefreshResponse extends LoginResponse {}