mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-23 13:51:13 +01:00
Add steamtotp to validation requests
This commit is contained in:
parent
7dc04d6158
commit
c998356ba5
@ -28,7 +28,7 @@ public function rules()
|
|||||||
'service' => 'nullable|string|regex:/^[^:]+$/i',
|
'service' => 'nullable|string|regex:/^[^:]+$/i',
|
||||||
'account' => 'required|string|regex:/^[^:]+$/i',
|
'account' => 'required|string|regex:/^[^:]+$/i',
|
||||||
'icon' => 'nullable|string',
|
'icon' => 'nullable|string',
|
||||||
'otp_type' => 'required|string|in:totp,hotp',
|
'otp_type' => 'required|string|in:totp,hotp,steamtotp',
|
||||||
'secret' => ['string', 'bail', new \App\Rules\IsBase32Encoded],
|
'secret' => ['string', 'bail', new \App\Rules\IsBase32Encoded],
|
||||||
'digits' => 'nullable|integer|between:6,10',
|
'digits' => 'nullable|integer|between:6,10',
|
||||||
'algorithm' => 'nullable|string|in:sha1,sha256,sha512,md5',
|
'algorithm' => 'nullable|string|in:sha1,sha256,sha512,md5',
|
||||||
|
@ -28,7 +28,7 @@ public function rules()
|
|||||||
'service' => 'present|nullable|string|regex:/^[^:]+$/i',
|
'service' => 'present|nullable|string|regex:/^[^:]+$/i',
|
||||||
'account' => 'required|string|regex:/^[^:]+$/i',
|
'account' => 'required|string|regex:/^[^:]+$/i',
|
||||||
'icon' => 'present|nullable|string',
|
'icon' => 'present|nullable|string',
|
||||||
'otp_type' => 'required|string|in:totp,hotp',
|
'otp_type' => 'required|string|in:totp,hotp,steamtotp',
|
||||||
'secret' => ['present', 'string', 'bail', new \App\Rules\IsBase32Encoded],
|
'secret' => ['present', 'string', 'bail', new \App\Rules\IsBase32Encoded],
|
||||||
'digits' => 'present|integer|between:6,10',
|
'digits' => 'present|integer|between:6,10',
|
||||||
'algorithm' => 'present|string|in:sha1,sha256,sha512,md5',
|
'algorithm' => 'present|string|in:sha1,sha256,sha512,md5',
|
||||||
|
Loading…
Reference in New Issue
Block a user