mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Fix FLEXIAPI-318 Fix email recovery validation
This commit is contained in:
parent
d4a757a892
commit
92825b0211
1 changed files with 2 additions and 2 deletions
|
|
@ -59,8 +59,8 @@ class RecoveryController extends Controller
|
|||
$rules = [
|
||||
'email' => 'required_without:phone|email|exists:accounts,email',
|
||||
'phone' => 'required_without:email|starts_with:+',
|
||||
'h-captcha-response' => captchaConfigured() ? 'required_if:email|HCaptcha' : '',
|
||||
'account_recovery_token' => 'required_if:phone',
|
||||
'h-captcha-response' => captchaConfigured() ? 'required_with:email|HCaptcha' : '',
|
||||
'account_recovery_token' => 'required_with:phone',
|
||||
];
|
||||
|
||||
$account = null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue