fix: replace mail pass unless changed (#1053)
This commit is contained in:
parent
06250c4f03
commit
53cdb11239
@ -12,7 +12,10 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
MailQuery: {
|
MailQuery: {
|
||||||
async config(obj, args, context, info) {
|
async config(obj, args, context, info) {
|
||||||
return WIKI.config.mail
|
return {
|
||||||
|
...WIKI.config.mail,
|
||||||
|
pass: WIKI.config.mail.pass.length > 0 ? '********' : ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
MailMutation: {
|
MailMutation: {
|
||||||
@ -48,7 +51,7 @@ module.exports = {
|
|||||||
port: args.port,
|
port: args.port,
|
||||||
secure: args.secure,
|
secure: args.secure,
|
||||||
user: args.user,
|
user: args.user,
|
||||||
pass: args.pass,
|
pass: (args.pass === '********') ? WIKI.config.mail.pass : args.pass,
|
||||||
useDKIM: args.useDKIM,
|
useDKIM: args.useDKIM,
|
||||||
dkimDomainName: args.dkimDomainName,
|
dkimDomainName: args.dkimDomainName,
|
||||||
dkimKeySelector: args.dkimKeySelector,
|
dkimKeySelector: args.dkimKeySelector,
|
||||||
|
Loading…
Reference in New Issue
Block a user