UE4 send SMS verification code

Posted on 2020-07-08,2 min read

Plugin:
PhoneAuthCode

About:
This plugin use Aliyun to send SMS verification code,
Authenticate the user
Considering the security problem, this plugin adopts the way of server generating verification code.
It runs on Windows and Linux systems

Snipaste_2020-06-20_22-00-20.png

Only three steps are needed to send the mobile phone verification code from the client:

  1. Import plugin
  2. Setup Config file
  3. use blueprints to write business logic

look at the final result :

2.gif

The plugin is imported into the project

aaa.png

Log in the website
https://dysms.console.aliyun.com/

The audit to obtain: AccessKeyId 、AccessSecret 、SignName 、TemplateCode

Snipaste_2020-06-20_22-42-25.png

Editor blueprint,
Set Config file,use Blueprint node : SendActivationCode to Send an SMS verification code

22.png
disclaimer:
1.This server can only be used to test plugins,Do not use for project development . Epic and I bear no consequences
2.The sign in widget shown is for demo purposes only and is not included with the plugin.

IP should fill in the address of the server
If you do not fill in, the default server is used
It is recommended to use your own server

ServerCode Github:
https://github.com/zgChihiro/UE4_SendSMS_Server/

If you send it successfully
Message is the phone activation code
If the send fails
Message is the error log

YuoTube

FAQ:

  1. Ali cloud account needs balance to be sent successfully(0.05¥/one message)

下一篇: UE4手机短信验证码→