身份确认电子邮件的简短代码 [英] Short code for email confirmation in identity
问题描述
大家好,
我需要使用Asp.Net Identity为电子邮件确认创建短代码(6位数)。
目前如果我使用GenerateEmailConfirmationTokenAsync它为我提供了很长的代码,而不是这个我想生成一个长度只有6位的代码。
有没有办法实现这个目标如何扩展身份以提供这样的功能。任何导致这一点的人都会有所帮助。
谢谢
我尝试了什么:
我尝试过使用GenerateEmailConfirmationToken方法
使用你自己的IUserTokenProvider [ ^ ]实现处理这些令牌,并创建六个char long,当目的是'确认' ...
Hi All,
I need to create Short Code (6 digit) for Email Confirmation using Asp.Net Identity.
Currently if I use "GenerateEmailConfirmationTokenAsync" it provides me with very long Code instead of this I want to generate a code which is only 6 digit in length.
Is there any way to achieve this how can I extend identity to provide such a feature. any leads towards this will be helpful.
Thanks
What I have tried:
I have tried using GenerateEmailConfirmationToken method
Use your own IUserTokenProvider[^] implementation to handle those tokens, and create six char long one, when purpose is 'Confirmation'...
这篇关于身份确认电子邮件的简短代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!