Files
fotospiel-app/app/Http/Requests/Auth/TenantAdminTokenRequest.php
Codex Agent 54b3fa0d87
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled
Add event-admin password reset flow
2026-01-06 11:02:09 +01:00

33 lines
716 B
PHP

<?php
namespace App\Http\Requests\Auth;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class TenantAdminTokenRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
/**
* @return array<string, ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'login' => ['required', 'email'],
'password' => ['required', 'string'],
];
}
public function credentials(): array
{
$login = $this->string('login')->trim()->value();
return ['email' => $login, 'password' => $this->string('password')->value()];
}
}