github的oauth登陆,如何进行调试?
发布于 作者:苏南大叔 来源:程序如此灵动~

github
的oauth
登陆系列源码已经发布在github
上面了,源码是基于typecho
的,如果您的博客是基于其他开源博客代码的,理论上需要您做对应修改。
大家喜欢的可以到这里获取:
在本文中,苏南大叔就给大家说一下,这个代码调试的时候,可能遇到的问题。
一,插件的基本调用
调用的方式是:
<?php $this->user->SNAuthGithubIcon(); ?>
展示的效果是这样的:
实际的生成的代码是这样的:
也就是说除了按钮的html
外,还有对应的js
和css
被加载了。所以,如果您对css
或者js
不满意的话,就可以修改这2个文件的代码。
二:取消github对应用的授权
调试的时候,您可能希望多次复现授权的过程,所以,您可以修改github
的这个地方:
然后您就可以多次复现下的类似界面了。
总结
更多oauth
相关文章,请点击苏南大叔的oauth
系列文章。


