mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
system: mention need to unlock a locked root account
When all actions are privilege-separated we can probably strip this part again.
This commit is contained in:
parent
e741b9e450
commit
ded0fee3f4
@ -464,6 +464,14 @@ function local_user_set(&$user, $force_password = false)
|
||||
$user_home = '/root';
|
||||
|
||||
if ($lock_account == 'lock') {
|
||||
/*
|
||||
* The root account should not be locked, as this will have
|
||||
* side-effects such as cron not working correctly. Set
|
||||
* password to unreachable "*" instead. Our auth framework
|
||||
* already checks for disabled elsewhere so we only need to
|
||||
* prevent root login in the console when integrated
|
||||
* authentication is off.
|
||||
*/
|
||||
$lock_account = 'unlock';
|
||||
$user_pass = '*';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user