mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-17 02:41:13 +01:00
Set min OTP digits to 5 to support Steam
This commit is contained in:
parent
30b8578229
commit
e03ec30040
@ -30,7 +30,7 @@ public function rules()
|
||||
'icon' => 'nullable|string',
|
||||
'otp_type' => 'required|string|in:totp,hotp,steamtotp',
|
||||
'secret' => ['string', 'bail', new \App\Rules\IsBase32Encoded],
|
||||
'digits' => 'nullable|integer|between:6,10',
|
||||
'digits' => 'nullable|integer|between:5,10',
|
||||
'algorithm' => 'nullable|string|in:sha1,sha256,sha512,md5',
|
||||
'period' => 'nullable|integer|min:1',
|
||||
'counter' => 'nullable|integer|min:0',
|
||||
|
@ -30,7 +30,7 @@ public function rules()
|
||||
'icon' => 'present|nullable|string',
|
||||
'otp_type' => 'required|string|in:totp,hotp,steamtotp',
|
||||
'secret' => ['present', 'string', 'bail', new \App\Rules\IsBase32Encoded],
|
||||
'digits' => 'present|integer|between:6,10',
|
||||
'digits' => 'present|integer|between:5,10',
|
||||
'algorithm' => 'present|string|in:sha1,sha256,sha512,md5',
|
||||
'period' => 'nullable|integer|min:1',
|
||||
'counter' => 'nullable|integer|min:0',
|
||||
|
Loading…
Reference in New Issue
Block a user