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:
parent
0f2d5d56a1
commit
4fc119804c
3 changed files with 4 additions and 3 deletions
|
@ -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',
|
||||
},
|
||||
|
|
|
@ -311,7 +311,7 @@ export default function connectorRoutes<T extends AuthedRouter>(
|
|||
await sendMessage(
|
||||
{
|
||||
to: subject,
|
||||
type: VerificationCodeType.Test,
|
||||
type: VerificationCodeType.Generic,
|
||||
payload: {
|
||||
code: '000000',
|
||||
},
|
||||
|
|
|
@ -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',
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue