feat(player): 接入创蓝短信手机注册与登录页优化
新增 SMS 验证码注册、8 国手机号选择与 Redis 频控;优化登录/注册 UI 及图形验证码样式。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -10,18 +10,35 @@ export class LoginDto {
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
password!: string;
|
||||
|
||||
@ApiProperty({ required: false, description: '国家区号,不含 +,如 86' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
countryCode?: string;
|
||||
}
|
||||
|
||||
export class RegisterDto {
|
||||
@ApiProperty()
|
||||
@ApiProperty({ description: '本地手机号,不含国家区号' })
|
||||
@IsString()
|
||||
username!: string;
|
||||
phone!: string;
|
||||
|
||||
@ApiProperty({ description: '国家区号,不含 +,如 86' })
|
||||
@IsString()
|
||||
countryCode!: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
@MinLength(8)
|
||||
password!: string;
|
||||
|
||||
@ApiProperty({ description: '短信验证码' })
|
||||
@IsString()
|
||||
smsCode!: string;
|
||||
|
||||
@ApiProperty({ description: '发送验证码返回的 sessionId' })
|
||||
@IsString()
|
||||
sessionId!: string;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
|
||||
Reference in New Issue
Block a user