You've already forked Atomcms-edit
20 lines
353 B
PHP
Executable File
20 lines
353 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Actions\Fortify\Rules;
|
|
|
|
use App\Rules\Password;
|
|
|
|
trait PasswordValidationRules
|
|
{
|
|
/**
|
|
* Get the validation rules used to validate passwords.
|
|
*/
|
|
/**
|
|
* @return array<int, mixed>
|
|
*/
|
|
protected function passwordRules(): array
|
|
{
|
|
return ['required', 'string', new Password, 'confirmed'];
|
|
}
|
|
}
|