fix Registrazione data
fix linkref fix controllo login
This commit is contained in:
@@ -55,6 +55,7 @@ const todos_router = require('./router/todos_router');
|
||||
const test_router = require('./router/test_router');
|
||||
const projects_router = require('./router/projects_router');
|
||||
const users_router = require('./router/users_router');
|
||||
const notevole_router = require('./router/notevole_router');
|
||||
const admin_router = require('./router/admin_router');
|
||||
|
||||
const { MyEvent } = require('./models/myevent');
|
||||
@@ -90,6 +91,7 @@ app.use(bodyParser.json());
|
||||
|
||||
i18n.configure({
|
||||
locales: ['it', 'en', 'es'],
|
||||
// cookie: 'cook',
|
||||
directory: __dirname + '/locales'
|
||||
});
|
||||
|
||||
@@ -99,6 +101,7 @@ app.use(cors({
|
||||
|
||||
app.use(bodyParser.json());
|
||||
|
||||
// app.use(express.cookieParser());
|
||||
app.use(i18n.init);
|
||||
|
||||
|
||||
@@ -116,6 +119,7 @@ app.use('/todos', todos_router);
|
||||
app.use('/test', test_router);
|
||||
app.use('/projects', projects_router);
|
||||
app.use('/users', users_router);
|
||||
app.use('/ayni', notevole_router);
|
||||
app.use('/admin', admin_router);
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
@@ -178,11 +182,13 @@ if (process.env.PROD !== 1) {
|
||||
// testmsgwebpush();
|
||||
// sendemail.testemail('2', 'it');
|
||||
|
||||
// let crypt = tools.cryptdata('');
|
||||
// let decrypt = tools.decryptdata(crypt);
|
||||
/*
|
||||
let crypt = tools.cryptdata('');
|
||||
let decrypt = tools.decryptdata(crypt);
|
||||
|
||||
// console.log('crypted:', crypt);
|
||||
// console.log('decrypted:', decrypt);
|
||||
console.log('crypted:', crypt);
|
||||
console.log('decrypted:', decrypt);
|
||||
*/
|
||||
|
||||
mycron();
|
||||
}
|
||||
@@ -221,11 +227,13 @@ function startserv() {
|
||||
|
||||
|
||||
// Check if is Empty (new Server Data)
|
||||
/*
|
||||
cfgserver.countDocuments(function (err, count) {
|
||||
if (!err && count === 0) {
|
||||
populateDBadmin();
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
@@ -273,4 +281,14 @@ telegrambot.sendMsgTelegramByIdTelegram('7', telegrambot.ADMIN_IDTELEGRAM_SERVER
|
||||
|
||||
// telegrambot.sendMsgTelegramToTheManagers('7', 'PROVAAA!');
|
||||
|
||||
// if (process.env.PROD !== 1) {
|
||||
// const reg = require('./reg/registration');
|
||||
// const link = reg.getlinkregByEmail('7', 'tomasihelen@dasdasgmail.comAAAA' , 'HelenTomasidasdasd');
|
||||
// const link2 = reg.getlinkregByEmail('7', 'tomasihelen@gmail.com' , 'HelenTomasi');
|
||||
// //const link2 = reg.getlinkregByEmail('7', 'elenaliubicich@gmail.com' , 'Elenaliu');
|
||||
//
|
||||
// console.log(link);
|
||||
// console.log(link2);
|
||||
// }
|
||||
|
||||
module.exports = { app };
|
||||
|
||||
Reference in New Issue
Block a user