Add steamtotp to validation requests

This commit is contained in:
Bubka 2022-06-25 17:31:39 +02:00
parent 7dc04d6158
commit c998356ba5
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public function rules()
'service' => 'nullable|string|regex:/^[^:]+$/i',
'account' => 'required|string|regex:/^[^:]+$/i',
'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],
'digits' => 'nullable|integer|between:6,10',
'algorithm' => 'nullable|string|in:sha1,sha256,sha512,md5',

View File

@ -28,7 +28,7 @@ public function rules()
'service' => 'present|nullable|string|regex:/^[^:]+$/i',
'account' => 'required|string|regex:/^[^:]+$/i',
'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],
'digits' => 'present|integer|between:6,10',
'algorithm' => 'present|string|in:sha1,sha256,sha512,md5',