- fixed cookie too down to the screen
- fix verified: if Telegram OK is not necessary the email verification. - contribtype fix
This commit is contained in:
@@ -389,6 +389,7 @@ module.exports = {
|
||||
AYNI: '7',
|
||||
CNM: '10',
|
||||
PDNM: '12',
|
||||
ISP: '13',
|
||||
|
||||
HELP_CHAT: '',
|
||||
TYPECONF_ZOOM: 'zoom',
|
||||
@@ -1589,7 +1590,7 @@ module.exports = {
|
||||
// Before check if exist more than 1 record in the destination,
|
||||
// if Yes don't copy
|
||||
if (numrec <= 0) {
|
||||
return await mythistable.findAllIdApp(idapporig).then(async (arrrec) => {
|
||||
return mythistable.findAllIdApp(idapporig).then(async (arrrec) => {
|
||||
let num = 0;
|
||||
|
||||
for (let ind = 0; ind < arrrec.length; ind++) {
|
||||
@@ -1597,12 +1598,16 @@ module.exports = {
|
||||
newrec._id = new ObjectID();
|
||||
newrec.idapp = idappdest;
|
||||
|
||||
await newrec.save((err, rec) => {
|
||||
if (rec) {
|
||||
num++;
|
||||
}
|
||||
try {
|
||||
await newrec.save((err, rec) => {
|
||||
if (rec) {
|
||||
num++;
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
}catch (e) {
|
||||
console.error('e', e);
|
||||
}
|
||||
|
||||
}
|
||||
return num;
|
||||
@@ -2340,10 +2345,16 @@ module.exports = {
|
||||
|
||||
blockwords(mystr) {
|
||||
const arrwords = ['http', 'Http', 'Asasfasfas', '://', 'mrbit', 'admin', 'superuser'];
|
||||
for (const myword of arrwords) {
|
||||
if (mystr.includes(myword)) {
|
||||
return true;
|
||||
try {
|
||||
for (const myword of arrwords) {
|
||||
if (mystr) {
|
||||
if (mystr.includes(myword)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user