posted by admin on November 12, 2012
更多

新增第三方登录扩展

新浪OAuth2.0登录、腾讯OAuth2.0登录 的YII扩展

目前支持新浪微博、QQ账号 

扩展下载地址:

https://github.com/windsdeng/oauth-login-for-yii

大家可以在本站体验体验。

如要代码的,可以直接下载本站代码。

欢迎大家下载学习。

https://github.com/windsdeng/dlfblog


写得不好,大家指导一下呀!


效果一

 20121112093117.jpg

效果二

 20121112093138.jpg

效果三

 20121112093528.jpg


效果图的值:small_login and medium_login and big_login

登录的view文件PHP代码 :

<?php $this->widget('ext.oauthLogin.OauthLogin',array(
           'itemView'=>'medium_login', //效果样式
           'back_url'=>Yii::app()->homeUrl,//login成功后返回的页面
 )); ?>

插件配置
oauth-login-for-yii\config\main.php

<?php
/**
 * @var 新浪配置
 */
define( "WB_AKEY" , '********' );
define( "WB_SKEY" , '****************************************' );
define( "WB_CALLBACK_URL" , 'http://demo.dlf5.net/site/wblogin');
  
/**
 * @var QQ配置
 */
  
define( "QQ_APPID" , '********' );
define( "QQ_APPKEY" , '****************************************' );
define( "QQ_CALLBACK_URL" ,'http://demo.dlf5.net/site/qqlogin');
?>




3 comments

#14842
cheap air max 90 [ 洪淇℃

辨锛

ㄦ璁块璧婧涓瀛锛/smartresult-xml/search.s 瑰昏棣椤 »

棣椤 - - - 瀹瑰瀹

©2014 缃

]says:
April 4, 2014 at 02:01 am
It's very simple to find out any topic on net as compared to textbooks, as
I found this paragraph at this site.
#8249
google blog list [ 洪淇℃

辨锛

ㄦ璁块璧婧涓瀛锛/smartresult-xml/search.s 瑰昏棣椤 »

棣椤 - - - 瀹瑰瀹

©2014 缃

]says:
January 28, 2014 at 07:45 pm
Wow, this post is fastidious, my sister is analyzing these things, so I am going to
convey her.

google blog list
#68
Hedem [ 洪淇℃

辨锛

ㄦ璁块璧婧涓瀛锛/smartresult-xml/search.s 瑰昏棣椤 »

棣椤 - - - 瀹瑰瀹

©2014 缃

]says:
November 17, 2012 at 09:32 pm
What's it take to become a sublime expounder of prose like yousrlef?

Leave a Comment

Fields with * are required.