Files
timebank-cc-public/app/Actions/Fortify/PasswordValidationRules.php
Ronald Huynen 2547717edb Initial commit
2026-03-23 21:37:59 +01:00

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']);
}
}