Skip to content

Commit d41feac

Browse files
committed
Add setting for emailValidationAPIKey
1 parent d2f0801 commit d41feac

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ModuleConfig.cfc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ component {
77
this.dependencies = [ "hyper" ];
88

99
function configure() {
10+
settings = {
11+
"emailValidationAPIKey": getSystemSetting( "SENDGRID_SDK_EMAIL_VALIDATION_API_KEY", "" )
12+
};
13+
1014
routes = [ { pattern: "/webhooks", handler: "webhooks", action: "handle" } ];
1115

1216
interceptorSettings = {

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ Configure your SendGrid API key credentials in the `config/ColdBox.cfc` file.
1616

1717
Note: SendGrid uses a Bearer API token header for authentication with their API.
1818
The SendGrid API Keys can have different permissions granted and email address
19-
validation is typically seperate from all other permission sets.
20-
19+
validation is typically separate from all other permission sets.
2120

2221
```
2322
moduleSettings = {
2423
"sendgrid-sdk" = {
25-
emailValidationAPIKey = ""
24+
"emailValidationAPIKey" = getSystemSetting( "SENDGRID_SDK_EMAIL_VALIDATION_API_KEY", "" )
2625
}
2726
};
2827
```

0 commit comments

Comments
 (0)