20 lines
447 B
PHP
20 lines
447 B
PHP
<?php
|
|
|
|
namespace App\Actions\Fortify;
|
|
|
|
use Laravel\Fortify\Rules\Password;
|
|
|
|
trait PasswordValidationRules
|
|
{
|
|
/**
|
|
* Get the validation rules used to validate passwords.
|
|
*
|
|
* @return array
|
|
*/
|
|
protected function passwordRules()
|
|
{
|
|
// Dynamically get the password validation rules from the config
|
|
return timebank_config('rules.profile_user.password', ['required', 'string', 'min:8', 'confirmed']);
|
|
}
|
|
}
|