Adds functionality for resetting customer passwords, including input and output handling.
20 lines
422 B
PHP
20 lines
422 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Cqs\Actions\Auth;
|
|
|
|
use App\Contracts\ActionInput;
|
|
use App\Models\Customer;
|
|
use Webmozart\Assert\Assert;
|
|
|
|
final readonly class ResetCustomerPasswordInput implements ActionInput
|
|
{
|
|
public function __construct(
|
|
public Customer $customer,
|
|
#[\SensitiveParameter]
|
|
public string $password,
|
|
) {
|
|
Assert::stringNotEmpty($this->password);
|
|
}
|
|
}
|