Togliere "in attesa di abilitazione"
Registrazione rapida (senza dover confermare, un link che scade dopo 48 ore.
This commit is contained in:
@@ -122,7 +122,16 @@ router.post('/', async (req, res) => {
|
||||
user.date_reg = new Date();
|
||||
user.aportador_iniziale = user.aportador_solidario;
|
||||
|
||||
if (!tools.getAskToVerifyReg(body.idapp)) {
|
||||
let regexpire = req.body['regexpire'];
|
||||
let nonchiedereverifica = false;
|
||||
if (regexpire) {
|
||||
nonchiedereverifica = await User.getifRegTokenIsValid(body.idapp, regexpire);
|
||||
}
|
||||
|
||||
if (!nonchiedereverifica)
|
||||
regexpire = '';
|
||||
|
||||
if (!tools.getAskToVerifyReg(body.idapp) || nonchiedereverifica) {
|
||||
// Se non devo chiedere di verificare all'Invitato, allora lo verifico direttamente
|
||||
user.verified_by_aportador = true;
|
||||
}
|
||||
@@ -319,7 +328,7 @@ router.post('/', async (req, res) => {
|
||||
// tools.mylog('process.env.TESTING_ON', process.env.TESTING_ON);
|
||||
console.log('res.locale', res.locale);
|
||||
|
||||
await telegrambot.askConfirmationUser(user.idapp, shared_consts.CallFunz.REGISTRATION, user);
|
||||
await telegrambot.askConfirmationUser(user.idapp, shared_consts.CallFunz.REGISTRATION, user, '', '', '', regexpire);
|
||||
|
||||
// if (!tools.testing()) {
|
||||
await sendemail.sendEmail_Registration(user.lang, user.email, user,
|
||||
|
||||
Reference in New Issue
Block a user