Hello Kyle,
I also cecked with CS-networks technical support and this is their response :-
We offer two step authentication that can be implemented.
When user enters his phone number, this should be invoked:
www.cs-networks.net/twowayauth/authentication.php
?
username=yourusername&password=yourpassword&number=44712345678 and the response should be saved. Then when user enters his code it can be checked with this:
www.cs-networks.net/twowayauth/authentication.php
?
username=yourusername&id=$response&code=$code $reponse you get id like 4444xxxxxx or 3333xxxx when submitting first URL, with second you are checking is the code entered by user correct, it returns true or false.
So if it is true that is correct code, and if false it is not. So after entering registration data in CB you need to invoke URL for sending verification code and to redirect user to a page that need to be made to accept code
and to confirm user registration. You will need to add to this page resend verification code which will invoke first URL, and again after entering the code second URL.
You can also implement all this on this way. When user enter registration data and when he press submit, the random code will be generated and stored with username, phone number ... Then you can send that
code to the user via our HTTP API(
api.cs-networks.net:9011/bin/send?USERNAME=yourusername&PASSWORD=yourpassword&SOURCEADDR=senderID&DESTADDR=123456789&MESSAGE=code
), and redirect user to a page where he will need to enter the verification code which you will check is it right or wrong, and based on that allow user to proceed to log in or deny his registration.