Nuovo Sistema di registrazione:
tramite il BOT, viene memorizzato l'username telegram e si usa quello come username per la APP, e l'ID telegram viene passato direttamente, senza chiedere la verifica. - ospitalità (inizio).
This commit is contained in:
@@ -1114,6 +1114,16 @@ module.exports = {
|
||||
return '';
|
||||
},
|
||||
|
||||
getLinkRegByIdAppAndMsgStrutt: function(idapp, msg) {
|
||||
|
||||
let myapp = this.getHostByIdApp(idapp);
|
||||
if (myapp) {
|
||||
myapp += '/' + msg.from.username + '/' + msg.from.id;
|
||||
}
|
||||
|
||||
return myapp;
|
||||
},
|
||||
|
||||
getHostByIdApp: function(idapp) {
|
||||
|
||||
const myapp = this.getApps().find(item => item.idapp === idapp);
|
||||
@@ -1222,8 +1232,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
getAskToVerifyReg: function(idapp) {
|
||||
return this.getConfSiteOptionEnabledByIdApp(idapp,
|
||||
shared_consts.ConfSite.Need_Aportador_On_DataReg_To_Verify_Reg);
|
||||
return this.getConfSiteOptionEnabledByIdApp(idapp, shared_consts.ConfSite.Need_Aportador_On_DataReg_To_Verify_Reg);
|
||||
},
|
||||
|
||||
isManagAndAdminDifferent(idapp) {
|
||||
|
||||
Reference in New Issue
Block a user