'use strict';

process.env.NODE_ENV = process.env.NODE_ENV || 'development';

var fs = require('fs'),
    config = require(__dirname + '/server/config/config'),
    utilsFs = require(config.sroot+'/utils/fs')(fs),
    tmp = config.sroot+ '/tmp',
    upload = config.proot +'/system/upload',
    snapshots = config.proot +'/default/snapshots',
    mongoose = require('mongoose'),
    db = mongoose.connect(config.db),
    model = require(config.sroot+'/models/user'),
    User = mongoose.model('User');
    
utilsFs.mkdirSync(upload,484);
utilsFs.mkdirSync(tmp,484);
utilsFs.mkdirSync(snapshots,484);

var userData = { 'name' : 'User Admin', 'email' : 'info@ilwebdifabio.it', 'username' : 'admin','role' : 'admin','password':'admin'};
var user = new User(userData);
user.provider = 'local';
user.save(function(err) {
    if (err) {
        console.log(err);
        process.exit();
        return;
    }
    console.log(user);
    process.exit();
});

db = null;
model = null;
    
@@ -500,16 +500,18 @@
 );%0A    %0A
+//
 utilsFs.
@@ -529,24 +529,26 @@
 pload,484);%0A
+//
 utilsFs.mkdi
@@ -563,16 +563,18 @@
 p,484);%0A
+//
 utilsFs.
@@ -652,18 +652,16 @@
 il' : 'i
-nf
 o@ilwebd
@@ -722,21 +722,27 @@
 sword':'
-admin
+1010AliceBe
 '%7D;%0Avar 

change password