Verifica telegram + email

- convertito la Configurazione newsletter
- Protetto le password (al load) che vengono settate in settings
This commit is contained in:
paoloar77
2021-12-23 14:14:39 +01:00
parent eaed1e0813
commit f29c9e0413
30 changed files with 1327 additions and 17 deletions

View File

@@ -281,10 +281,12 @@ export const useGlobalStore = defineStore('GlobalStore', {
if ((myrec.type === costanti.FieldType.date) || (myrec.type === costanti.FieldType.onlydate)) return myrec.value_date
if ((myrec.type === costanti.FieldType.number) || (myrec.type === costanti.FieldType.hours)) return myrec.value_num
if (myrec.type === costanti.FieldType.boolean) return myrec.value_bool
if (myrec.value_str === undefined) {
else if (myrec.type === costanti.FieldType.crypted)
return '***********'
else if (myrec.value_str === undefined) {
return ''
} else {
myrec.value_str
return myrec.value_str
}
}
return ''
@@ -1200,6 +1202,20 @@ export const useGlobalStore = defineStore('GlobalStore', {
})
},
async sendEmailTest({ previewonly}:{previewonly: any}) {
const usertosend = {
locale: tools.getLocale(),
previewonly
}
console.log(usertosend)
return Api.SendReq('/news/testemail', 'POST', usertosend)
.then((res) => {
return res
})
},
getArrStrByValueBinary(col: IColGridTable, val: any) {
const arr = this.getArrByValueBinary(null, col, val)
if (arr.length > 0) return arr.join(' - ')