1 user.install | user_update_1018() |
Set default values for core password constraints.
Related topics
File
- core/
modules/ user/ user.install, line 1252 - 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();
}