feat: 忘记密码增设脱敏邮箱二次手动输入一致性核对安全锁
This commit is contained in:
@@ -31,8 +31,8 @@ class SendPasswordResetLinkRequest extends FormRequest
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'email' => ['required_without:username', 'nullable', 'email', 'max:255'],
|
||||
'username' => ['required_without:email', 'nullable', 'string', 'max:100'],
|
||||
'email' => ['required', 'email', 'max:255'],
|
||||
'username' => ['required', 'string', 'max:100'],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -44,9 +44,10 @@ class SendPasswordResetLinkRequest extends FormRequest
|
||||
public function messages(): array
|
||||
{
|
||||
return [
|
||||
'email.required' => '请输入绑定邮箱地址以进行二次确认。',
|
||||
'email.email' => '邮箱格式不正确,请重新输入。',
|
||||
'email.max' => '邮箱长度不能超过 255 个字符。',
|
||||
'email.required_without' => '请输入绑定邮箱或用户昵称。',
|
||||
'username.required' => '用户昵称参数缺失。',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user