JavaScript-How should websites verify the authenticity of a member's WeChat account?

Source: Internet
Author: User
Tags openid
Now there's a public number that was intended to be used to send members to the public by using a registered user name
Backstage get the member's account number and website user name to compare to judge the authenticity of the number
The public interface is now found to prohibit access to the number of followers should be how to complete the account authentication
Email address can send verification mail mobile phone number can send SMS verification code account there is no relevant authentication method?

Reply content:

Now there's a public number that was intended to be used to send members to the public by using a registered user name
Backstage get the member's account number and website user name to compare to judge the authenticity of the number
The public interface is now found to prohibit access to the number of followers should be how to complete the account authentication
Email address can send verification mail mobile phone number can send SMS verification code account there is no relevant authentication method?

You think you want to get the user's number? This first has to tell you that it is impossible.
In addition you this business mainly to the user through the action number to bind the registered users, to implement the association, right? If this is the case, you only need to add a page login when the new user is associated with the user who registered with the site. (When the user enters a Web site username and password, the user can be bound after verifying that it is correct)
In addition, we can obtain the user's unique OpenID (non-number, but also the user's unique identity in your public number) through the interface.

I'll answer that! You can't get attention to the number! So far! So you need to change your mind.

First step Web page authorization to get user's corresponding OpenID bindings

If you bind to OpenID then it is the binding success (Web authorization is to follow the account or authorization,) and then from the public account to take advantage of the user's OpenID hair "Hello, ...." "The ResponseInitiative::text message test is sent successfully!" If the delivery is successful then that means attention. If sending fails send SMS to remind users of your concern

 echo"";               $SDFDSJFH=('    亲!恭喜您选座成功!');              $oscwifi_title=('       选座位置为:');              $time_xuzuo=('          选座时间为:');              $tousername = $_SESSION['wxapp']['openid'];            \LaneWeChat\Core\ResponseInitiative::text($tousername, $name.$SDFDSJFH.$oscwifi_title.$title.$time_xuzuo.$ktsj);
我用发送的消息  LaneWeChat

Similar to

Source: http://hi013.com/index.php/archives/38/ A similar project I have done before, by hi013

Well, not exactly figuring out what you're going to do (account bindings?) ), but through the oauth2 authorization, has done the account identification, which is why a lot of brush volume can only manually do.

is the member when the information is published if there is a number in the content, you need to verify in advance whether the member's own to prevent the release of other people's numbers
It's a lap down. The conclusion is that the subscription number cannot get the number of followers

So you can only use the ordinary number of manual verification of ordinary number if the two are friends, you will be able to see the account

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.