功能:注册保存性别 + 聊天室个人设置弹窗

- 登录表单的性别选择(bSex)在注册时保存到数据库(男/女/保密)
- 新增 question/answer 密保字段迁移(hasColumn 安全检查)
- User 模型 fillable 增加 sign/question/answer
- UpdateProfileRequest 增加 email/question/answer 验证
- 聊天室工具栏新增设置按钮
- 设置弹窗包含:修改密码、性别、邮箱、密保问题
This commit is contained in:
2026-02-26 22:50:35 +08:00
parent 86732deaca
commit c38a53fa74
7 changed files with 225 additions and 1 deletions

View File

@@ -33,6 +33,9 @@ class UpdateProfileRequest extends FormRequest
'sex' => ['required', 'string', 'in:男,女,保密'],
'headface' => ['required', 'string', 'max:50'], // 比如存放 01.gif - 50.gif
'sign' => ['nullable', 'string', 'max:255'],
'email' => ['nullable', 'email', 'max:255'],
'question' => ['nullable', 'string', 'max:100'],
'answer' => ['nullable', 'string', 'max:100'],
];
}