Verifica telegram + email
- convertito la Configurazione newsletter - Protetto le password (al load) che vengono settate in settings
This commit is contained in:
@@ -47,6 +47,7 @@ export const costanti = {
|
||||
multioption: 6000,
|
||||
onlydate: 7000,
|
||||
hours: 8000,
|
||||
crypted: 9000,
|
||||
},
|
||||
FieldTypeArr: [
|
||||
{ label: 'Boolean', value: 1 },
|
||||
|
||||
@@ -789,6 +789,7 @@ export const fields = {
|
||||
AddCol({ name: 'value_num', label_trans: 'cal.num', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'value_bool', label_trans: 'cal.bool', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'serv', label_trans: 'cal.serv', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'crypted', label_trans: 'cal.crypted', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol(DeleteRec),
|
||||
AddCol(DuplicateRec),
|
||||
],
|
||||
|
||||
@@ -175,6 +175,10 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return ''
|
||||
},
|
||||
|
||||
isUserOk(): boolean {
|
||||
return this.my.verified_email! && this.my.profile.teleg_id! > 0
|
||||
},
|
||||
|
||||
getNameSurnameByUserId(userId: string): string {
|
||||
|
||||
const user = this.getUserByUserId(userId)
|
||||
|
||||
@@ -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(' - ')
|
||||
|
||||
Reference in New Issue
Block a user