ASP.NET MVC中的OTP验证 [英] OTP verify in ASP.NET MVC

查看:106
本文介绍了ASP.NET MVC中的OTP验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi,
I am working with MVC. I want to verify user with OTP in my Application. Could anyone suggest any link or example.
Thanks 





我的尝试:



我试过



What I have tried:

I have tried

Twilio

但我想用双因子身份验证验证Otp

But i want to verify Otp with Two Factor Authentication
.

推荐答案

你好,



我不知道你在哪里被打了?正如您所尝试的,有一个明确的可编程短信:在您的应用中发送和接收文本 - Twilio [ ^ ]文档。



应用程序逻辑中的OTP应该只由您编写。例如,我在这里以改变密码为例。



1.在数据库 - 表(用户)中,添加一个名为OTPCode的新列。

2.当用户点击忘记密码时生成一个随机字符串,并在该列中为该用户输入相同的字符串。

3.向该用户发送短信/电子邮件。

4.当他想尝试更改密码时验证相同。



**希望这能帮到你。



--RA
Hello,

I am not sure where you are struck up? as you tried, there is a clear Programmable SMS: Send and Receive Texts in Your App - Twilio[^] documentation here.

OTP in application logic should be written by you only. for example here I am taking example for change password.

1. In the database - table (user) , add new column called OTPCode.
2. Generate a random string when user click on the forgot password and same same into that column for that user.
3. Send SMS/EMail to that user.
4. validate the same when he wants to try to change the password.

** hope this will help you.

--RA

LMGTFY [ ^ ]


这篇关于ASP.NET MVC中的OTP验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆