fix(frontend/backend): suppress unauth toast on init, fix admin-login DTO validation and RSC directives
Deploy Canina / deploy (push) Failing after 29s
Deploy Canina / deploy (push) Failing after 29s
This commit is contained in:
1 parent
acc662fce8
commit
adbfa60343
6 files changed
+25
-4
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { IsEmail, IsNotEmpty, IsString, MinLength } from 'class-validator';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class AdminLoginDto {
|
||||
@ApiProperty({ description: 'ایمیل ادمین', example: 'admin@canina-iran.com' })
|
||||
@IsEmail({}, { message: 'فرمت ایمیل وارد شده معتبر نمیباشد.' })
|
||||
@IsNotEmpty({ message: 'ایمیل الزامی است.' })
|
||||
email!: string;
|
||||
|
||||
@ApiProperty({ description: 'رمز عبور ادمین', example: 'admin123' })
|
||||
@IsString({ message: 'رمز عبور باید رشته متنی باشد.' })
|
||||
@MinLength(6, { message: 'رمز عبور باید حداقل ۶ کاراکتر باشد.' })
|
||||
@IsNotEmpty({ message: 'رمز عبور الزامی است.' })
|
||||
password!: string;
|
||||
}
|
||||
Reference in new issue
Block a user