Skip to content

Instantly share code, notes, and snippets.

@ybon3
Last active January 17, 2017 06:32
Show Gist options
  • Save ybon3/b5547d28b82e035a6a579df9b8995b0c to your computer and use it in GitHub Desktop.
Save ybon3/b5547d28b82e035a6a579df9b8995b0c to your computer and use it in GitHub Desktop.
SMS 簡訊驗證流程

sms 驗證碼流程

請用 http://montypan.github.io/GYT/sequence.html 開啟下列語法

User -> App : 輸入 ID、電話號碼
App -> Web : Call SmsSendServlet API(Tel)
Web -> Web : 產生識別碼、認證碼
Web -> SMS Provider : Call SMS API
SMS Provider -->> User : 發送帶有驗證碼的簡訊
SMS Provider -> Web : 回覆傳送狀態
Web -> App : 簡訊已送出,並提供識別碼
App -> User : 等待輸入認證碼
User -> App : 輸入認證碼
App -> Web : Call VerifyServlet API(電話、識別碼、驗證碼)
Web -> Web : 進行驗證
Web -> App : 驗證成功
App -> Web : /Portal/mIndex.html?uid=xxx&tel=xxx
Web --> User : Entry Web,顯示主畫面
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment