mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
all: style sweep
This commit is contained in:
-1
@@ -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
@@ -25,6 +25,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
namespace OPNsense\Backup\Api;
|
||||
|
||||
use OPNsense\Base\ApiControllerBase;
|
||||
|
||||
class BackupController extends ApiControllerBase
|
||||
|
||||
Reference in New Issue
Block a user