added: _ e - all'username in fase di registrazione
This commit is contained in:
@@ -91,9 +91,10 @@ router.post('/', async (req, res) => {
|
||||
|
||||
// tools.mylog("LANG PASSATO = " + user.lang, "IDAPP", user.idapp);
|
||||
|
||||
if (!tools.isAlphaNumeric(body.username) || body.email.length < 6 ||
|
||||
if (!tools.isAlphaNumericAndSpecialCharacter(body.username) || body.email.length < 6 ||
|
||||
body.username.length < 6 || body.password.length < 6) {
|
||||
await tools.snooze(5000);
|
||||
console.log('Username non valido in Registrazione: ' + body.username);
|
||||
res.status(400).
|
||||
send({code: server_constants.RIS_CODE_USERNAME_NOT_VALID, msg: ''});
|
||||
return 1;
|
||||
@@ -895,7 +896,8 @@ async function eseguiDbOp(idapp, mydata, locale) {
|
||||
|
||||
const globalTables = require('../tools/globalTables');
|
||||
|
||||
const mytablesstr = ['settings', 'users', 'templemail', 'contribtypes'];
|
||||
//++ Todo: TO FIXIT !
|
||||
const mytablesstr = ['settings', 'users', 'templemail', 'contribtypes', 'bots', 'cfgservers'];
|
||||
|
||||
try {
|
||||
let numrectot = 0;
|
||||
|
||||
Reference in New Issue
Block a user