update ASP generator

This commit is contained in:
Andris Reinman 2018-10-10 16:52:30 +03:00
parent 2f271c02b8
commit 5cab241ea6

View file

@ -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,