mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
parent
55a4bb8f70
commit
296ad47dbb
3 changed files with 4 additions and 3 deletions
|
|
@ -1493,5 +1493,4 @@ class SettingsController extends ApiControllerBase
|
|||
"name"
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,11 +36,10 @@ class M2_6_0 extends BaseModelMigration
|
|||
{
|
||||
// Migrate old stats user:password entries to new user management feature
|
||||
if (!empty((string)$model->general->stats->users)) {
|
||||
|
||||
// Add new user for each entry
|
||||
$UUIDlist = array();
|
||||
foreach (explode(',', (string)$model->general->stats->users) as $statsuser) {
|
||||
$olddata = explode(':',$statsuser,2);
|
||||
$olddata = explode(':', $statsuser, 2);
|
||||
$userNode = $model->users->user->Add();
|
||||
$userNode->name = (string)$olddata[0];
|
||||
$userNode->description = 'stats user';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* Copyright (C) 2018 Fabian Franz
|
||||
* All rights reserved.
|
||||
|
|
@ -24,7 +25,9 @@
|
|||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace OPNsense\Backup\Api;
|
||||
|
||||
use OPNsense\Base\ApiControllerBase;
|
||||
|
||||
class BackupController extends ApiControllerBase
|
||||
|
|
|
|||
Loading…
Reference in a new issue