#
Google-
Authen
ticator
Google身份验证器
##用法
###步骤1-注册申请
$
google = new
GoogleAuthen
ticator ();
// Register appli
cation
echo $
google -> get
QRCodeUrl (
'MyAppli
cationName
' );
// Save secret Key
$ secretKey = $
google -> getSecretKey ();
###步骤2-验证码
$
google = new
GoogleAuthen
ticator ( $ secretKey );
// User submit code
$ userSubmitCode =
'
' ;
// Verify Code
if ( $
google -> verifyCode ( $ userSubmitCode )) {
// OK
}