1.20.x user.install | user_update_1018() |
Set default values for core password constraints.
Related topics
File
- modules/
user/ user.install, line 1225 - Install, update and uninstall functions for the user module.
Code
function user_update_1018() {
$config = config('system.core');
$config->set('user_password_reject_weak', FALSE);
$config->set('user_password_strength_threshold', 50);
$config->save();
}