mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-23 23:49:53 +01:00
Fix TwoFAccount update validation rules
This commit is contained in:
parent
0f34736e4e
commit
1d503ca313
@ -31,8 +31,8 @@ public function rules()
|
||||
'secret' => ['required', 'string', 'bail', new \App\Rules\IsBase32Encoded],
|
||||
'digits' => 'required|integer|between:6,10',
|
||||
'algorithm' => 'required|string|in:sha1,sha256,sha512,md5',
|
||||
'period' => 'required_if:otp_type,totp|integer|min:1',
|
||||
'counter' => 'required_if:otp_type,hotp|integer|min:0',
|
||||
'period' => 'required_if:otp_type,totp|nullable|integer|min:1',
|
||||
'counter' => 'required_if:otp_type,hotp|nullable|integer|min:0',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user