anonaddy/app/Http/Requests/ApiAuthenticationMfaRequest.php
2022-08-23 09:58:25 +01:00

32 lines
658 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ApiAuthenticationMfaRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, mixed>
*/
public function rules()
{
return [
'mfa_key' => 'required|string|max:500',
'otp' => 'required|string|min:6|max:6',
'device_name' => 'required|string|max:50'
];
}
}