简体   繁体   English

如何使用 authy 在电子邮件而不是短信中发送验证码?

[英]How can I send verification code in email instead of sms using authy?

I am using twilio authy API with PHP for sending verification code to the user in sms where Authy handles everything generation of a new code, sending to mobile and verification using its various APIs but now I need Authy to send code in email instead of sending code in SMS and all other features will be same like verification and generation of code at authy level.我正在使用带有 PHP 的 twilio authy API 以短信形式向用户发送验证码,其中 Authy 处理新代码的所有生成、发送到移动设备并使用其各种 API 进行验证,但现在我需要 Authy 在电子邮件中发送代码而不是发送代码在 SMS 中,所有其他功能都将相同,例如在 authy 级别验证和生成代码。

How can I do that?我怎样才能做到这一点? Or can anybody suggest to me some other third party for that?或者有人可以为此向我建议其他第三方吗?

Actually I don't want to generate code myself and save it in my database but should be handled by some third party.实际上我不想自己生成代码并将其保存在我的数据库中,而是应该由某些第三方处理。

Twilio developer evangelist here. Twilio 开发人员布道者在这里。

The Authy API only supports sending 2FA codes over SMS, a voice call, via the application or over push notifications . Authy API 仅支持通过SMS、语音呼叫、应用程序推送通知发送 2FA 代码。 You cannot send 2FA codes over email using the Authy API.您不能使用 Authy API 通过电子邮件发送 2FA 代码。

You can send verification code via email using Twilio Authy api.您可以使用 Twilio Authy api 通过电子邮件发送验证码。 Authy added support for this- https://www.twilio.com/changelog/authy-adds-support-user-authentication-email Authy 添加了对此的支持 - https://www.twilio.com/changelog/authy-adds-support-user-authentication-email

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM