mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-10 01:48:38 +08:00
update ASP generator
This commit is contained in:
parent
2f271c02b8
commit
5cab241ea6
1 changed files with 4 additions and 4 deletions
|
@ -475,7 +475,7 @@ module.exports = (db, server, userHandler) => {
|
|||
{
|
||||
PayloadType: 'Configuration',
|
||||
PayloadVersion: 1,
|
||||
PayloadIdentifier: profileOpts.identifier + '.' + userData.username,
|
||||
PayloadIdentifier: profileOpts.identifier + '.' + userData._id,
|
||||
PayloadUUID: uuid.v4(),
|
||||
PayloadDisplayName: description || profileOpts.displayName,
|
||||
PayloadDescription: profileOpts.displayDescription,
|
||||
|
@ -485,7 +485,7 @@ module.exports = (db, server, userHandler) => {
|
|||
{
|
||||
PayloadType: 'com.apple.mail.managed',
|
||||
PayloadVersion: 1,
|
||||
PayloadIdentifier: profileOpts.identifier + '.' + userData.username,
|
||||
PayloadIdentifier: profileOpts.identifier + '.' + userData._id,
|
||||
PayloadUUID: uuid.v4(),
|
||||
PayloadDisplayName: 'Email Account',
|
||||
PayloadDescription: 'Configures email account',
|
||||
|
@ -499,14 +499,14 @@ module.exports = (db, server, userHandler) => {
|
|||
IncomingMailServerHostName: accountHost,
|
||||
IncomingMailServerPortNumber: accountPort,
|
||||
IncomingMailServerUseSSL: accountSecure,
|
||||
IncomingMailServerUsername: userData.username,
|
||||
IncomingMailServerUsername: userData.address,
|
||||
IncomingPassword: result.password,
|
||||
OutgoingPasswordSameAsIncomingPassword: true,
|
||||
OutgoingMailServerAuthentication: 'EmailAuthPassword',
|
||||
OutgoingMailServerHostName: config.smtp.setup.hostname,
|
||||
OutgoingMailServerPortNumber: config.smtp.setup.port || config.smtp.port,
|
||||
OutgoingMailServerUseSSL: 'secure' in config.smtp.setup ? !!config.smtp.setup.secure : config.smtp.secure,
|
||||
OutgoingMailServerUsername: userData.username,
|
||||
OutgoingMailServerUsername: userData.address,
|
||||
PreventMove: false,
|
||||
PreventAppSheet: false,
|
||||
SMIMEEnabled: false,
|
||||
|
|
Loading…
Reference in a new issue