摘要: 原来的配置是这样的: location / { try_files $uri $uri/ /index.php; index index.html index.htm index.php; } location ... 阅读全文
posted @ 2015-12-21 18:29 悲惨的大爷 阅读(1655) 评论(0) 推荐(0) 编辑
摘要: 思路:secret系统生成的密钥把密钥分配给某个用户,用户可以把这个密钥加入到app中,app会1min生成一个code;验证时,根据用户的secret ,系统生成一个code,再比较用户输入的code是否一样方法:$g=newGoogleAuthenticator();生成secret,保存在客户... 阅读全文
posted @ 2015-12-21 09:46 悲惨的大爷 阅读(889) 评论(0) 推荐(0) 编辑