摘要:
原来的配置是这样的: location / { try_files $uri $uri/ /index.php; index index.html index.htm index.php; } location ... 阅读全文
摘要:
思路:secret系统生成的密钥把密钥分配给某个用户,用户可以把这个密钥加入到app中,app会1min生成一个code;验证时,根据用户的secret ,系统生成一个code,再比较用户输入的code是否一样方法:$g=newGoogleAuthenticator();生成secret,保存在客户... 阅读全文