-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from bigcapitalhq/abouhuolia/big-33-sending-e…
…mails-on-reset-password-and-registration fix(server): sending emails on reset password and registration
- Loading branch information
Showing
16 changed files
with
29 additions
and
1,053 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,16 +95,15 @@ module.exports = { | |
* JWT secret. | ||
*/ | ||
jwtSecret: process.env.JWT_SECRET, | ||
resetPasswordSeconds: 600, | ||
|
||
/** | ||
* | ||
* | ||
*/ | ||
customerSuccess: { | ||
email: '[email protected]', | ||
phoneNumber: '(218) 92 791 8381', | ||
}, | ||
resetPasswordSeconds: 600, | ||
|
||
/** | ||
* Application base URL. | ||
*/ | ||
baseURL: process.env.BASE_URL, | ||
|
||
/** | ||
|
@@ -137,16 +136,6 @@ module.exports = { | |
}, | ||
}, | ||
|
||
/** | ||
* Users registeration configuration. | ||
*/ | ||
registration: { | ||
countries: { | ||
whitelist: ['LY'], | ||
blacklist: [], | ||
}, | ||
}, | ||
|
||
/** | ||
* Sign-up restrictions | ||
*/ | ||
|
@@ -167,8 +156,6 @@ module.exports = { | |
browserWSEndpoint: process.env.BROWSER_WS_ENDPOINT, | ||
}, | ||
|
||
protocol: '', | ||
hostname: '', | ||
scheduleComputeItemCost: 'in 5 seconds', | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
import Agenda from 'agenda'; | ||
import WelcomeEmailJob from 'jobs/welcomeEmail'; | ||
import WelcomeSMSJob from 'jobs/WelcomeSMS'; | ||
import ResetPasswordMailJob from 'jobs/ResetPasswordMail'; | ||
import ComputeItemCost from 'jobs/ComputeItemCost'; | ||
import RewriteInvoicesJournalEntries from 'jobs/writeInvoicesJEntries'; | ||
import RewriteInvoicesJournalEntries from 'jobs/WriteInvoicesJEntries'; | ||
import UserInviteMailJob from 'jobs/UserInviteMail'; | ||
import OrganizationSetupJob from 'jobs/OrganizationSetup'; | ||
import OrganizationUpgrade from 'jobs/OrganizationUpgrade'; | ||
import SmsNotification from 'jobs/SmsNotification'; | ||
|
||
export default ({ agenda }: { agenda: Agenda }) => { | ||
new WelcomeEmailJob(agenda); | ||
new ResetPasswordMailJob(agenda); | ||
new WelcomeSMSJob(agenda); | ||
new UserInviteMailJob(agenda); | ||
new ComputeItemCost(agenda); | ||
new RewriteInvoicesJournalEntries(agenda); | ||
new OrganizationSetupJob(agenda); | ||
new OrganizationUpgrade(agenda); | ||
new SmsNotification(agenda); | ||
|
||
agenda.start(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
packages/server/src/services/Authentication/AuthenticationSMSMessages.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
packages/server/src/subscribers/Authentication/SendWelcomeMail.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.