0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

chore: send testing sms/email using Generic template type (#3403)

This commit is contained in:
Darcy Ye 2023-03-15 16:43:31 +08:00 committed by GitHub
parent 0f2d5d56a1
commit 4fc119804c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -452,7 +452,7 @@ describe('connector route', () => {
expect(sendMessage).toHaveBeenCalledWith(
{
to: '12345678901',
type: VerificationCodeType.Test,
type: VerificationCodeType.Generic,
payload: {
code: '000000',
},
@ -480,7 +480,7 @@ describe('connector route', () => {
expect(sendMessage).toHaveBeenCalledWith(
{
to: 'test@email.com',
type: VerificationCodeType.Test,
type: VerificationCodeType.Generic,
payload: {
code: '000000',
},

View file

@ -311,7 +311,7 @@ export default function connectorRoutes<T extends AuthedRouter>(
await sendMessage(
{
to: subject,
type: VerificationCodeType.Test,
type: VerificationCodeType.Generic,
payload: {
code: '000000',
},

View file

@ -75,6 +75,7 @@ export enum VerificationCodeType {
/** @deprecated */
Continue = 'Continue',
Generic = 'Generic',
/** @deprecated Use `Generic` type template for sending test sms/email use case */
Test = 'Test',
}