mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
While I'm here, fix the case when the admin account has been removed.
This commit is contained in:
parent
41e32578d8
commit
33d625f118
@ -88,6 +88,7 @@ The User manager authentication server is set to "' . $config['system']['webgui'
|
||||
$config['system']['user'] = array();
|
||||
}
|
||||
$config['system']['user'][] = $admin_user;
|
||||
$admin_user =& getUserEntryByUID(0);
|
||||
}
|
||||
|
||||
$admin_user['name'] = "admin";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user