網頁

2015年6月29日 星期一

[野人獻曝] 實作 Clef 的 2-factor 登入

Clef 是一套算是方便的簡單登入機制,宣稱只要三個步驟就能讓你簡單登入:

  • 點擊支援網站的登入按鍵,此時會出現 Clef 的登入畫面(其實就是一個 GIF 條碼而已)
  • 打開安裝在手機上的 Clef APP,掃描該 GIF。
  • 若是第一次造訪該網站可能會要求你填寫額外資料。這樣就完成登入作業了。
要在自家網站使用這個服務,得先去他們網站註冊,並開啟一個新 Application ,接著就是要改一下 Code 了。

以下是 PHP 使用 CI 所寫出的範例 Code(這裡只實作登入部份,登出部份之後再另寫一篇說明):
如果要玩玩看實際的操作流程,可以連到這裡看看。

1 則留言:

vannjacobs 提到...

Contrary to well-liked belief, there isn’t a time of the day, the week or the month during which your chances of successful would increase, while playing in} on-line slot machines. However, there may be a time when it is more likely that you can hit that massive jackpot you have have} been having your eyes on for some 리턴벳 time. Advantages of on-line slots are innumerable, considered one of them being the ability to enjoy further value from rewards and bonuses.