@@ -17,7 +17,7 @@ import { exec } from 'child_process';
17
17
import { createTransport } from 'nodemailer' ;
18
18
import { app as v1 } from './cloud/customRoute/v1/apiV1.js' ;
19
19
import { PostHog } from 'posthog-node' ;
20
- import { cloudServerUrl , smtpenable , smtpsecure , useLocal } from './Utils.js' ;
20
+ import { appName , cloudServerUrl , smtpenable , smtpsecure , useLocal } from './Utils.js' ;
21
21
import { SSOAuth } from './auth/authadapter.js' ;
22
22
let fsAdapter ;
23
23
if ( useLocal !== 'true' ) {
@@ -102,7 +102,7 @@ export const config = {
102
102
verifyUserEmails : false ,
103
103
publicServerURL : process . env . SERVER_URL || cloudServerUrl ,
104
104
// Your apps name. This will appear in the subject and body of the emails that are sent.
105
- appName : 'Opensign' ,
105
+ appName : appName ,
106
106
allowClientClassCreation : false ,
107
107
allowExpiredAuthDataToken : false ,
108
108
encodeParseObjectInCloudFunction : true ,
@@ -112,7 +112,7 @@ export const config = {
112
112
module : 'parse-server-api-mail-adapter' ,
113
113
options : {
114
114
// The email address from which emails are sent.
115
- sender : 'Opensign™' + ' <' + mailsender + '>' ,
115
+ sender : appName + ' <' + mailsender + '>' ,
116
116
// The email templates.
117
117
templates : {
118
118
// The template used by Parse Server to send an email for password
@@ -141,12 +141,7 @@ export const config = {
141
141
}
142
142
: { } ) ,
143
143
filesAdapter : fsAdapter ,
144
- auth : {
145
- google : {
146
- enabled : true ,
147
- } ,
148
- sso : SSOAuth ,
149
- } ,
144
+ auth : { google : { enabled : true } , sso : SSOAuth } ,
150
145
} ;
151
146
// Client-keys like the javascript key or the .NET key are not necessary with parse-server
152
147
// If you wish you require them, you can set them as options in the initialization above:
0 commit comments