mirror of
https://github.com/wekan/wekan.git
synced 2026-02-20 23:14:07 +01:00
Fixed CRITICAL SECURITY ISSUE of SMTP password visible to Admin at
Admin Panel by using browser inspect to see behind asterisks. Thanks to Georg Krause and xet7 !
This commit is contained in:
parent
64d4c3f971
commit
71725f1b26
2 changed files with 13 additions and 2 deletions
|
|
@ -31,7 +31,18 @@ Meteor.publish('mailServer', function() {
|
|||
if (!Match.test(this.userId, String)) return [];
|
||||
const user = Users.findOne(this.userId);
|
||||
if (user && user.isAdmin) {
|
||||
return Settings.find({}, { fields: { mailServer: 1 } });
|
||||
return Settings.find(
|
||||
{},
|
||||
{
|
||||
fields: {
|
||||
'mailServer.host': 1,
|
||||
'mailServer.port': 1,
|
||||
'mailServer.username': 1,
|
||||
'mailServer.enableTLS': 1,
|
||||
'mailServer.from': 1,
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
return [];
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue