Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
110 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
Using hybridauth with yii-user-management: | ||
|
||
0.) Read the Hybrid Auth User Guide to get an idea of what we are doing here: | ||
http://hybridauth.sourceforge.net/userguide.html | ||
|
||
1.) Configure 'loginType' in UserModule configuration to include 'hybridauth' in your | ||
application config/main.php | ||
application config/main.php. For example, set 'loginType' to 7, to allow login by | ||
username, email and hybridauth. Make sure to enable the profile submodule. | ||
|
||
2.) Select the providers you want to use in the 'hybridAuthProviders' array. | ||
2.) Select the providers you want to use in the 'hybridAuthProviders' array. For example, | ||
to use Facebook and Twitter, set this variable to array('Facebook', 'Twitter') | ||
|
||
3.) Take the modules/user/vendors/index.php, rename it to 'hybridauth.php' and place it | ||
beside your application index.php bootstrap script. | ||
beside your application index.php bootstrap script. This will be your hybrid auth | ||
entry script. | ||
|
||
4.) Configure and place your hybridauth configuration file. Set the base_url | ||
to the hybridauth.php script configured above. | ||
to the hybridauth.php script configured above. | ||
|
||
5.) Place the configuration file into your application | ||
protected/config/hybridauth.php. This path can be configured with the | ||
hybridAuthConfigFile option. You can use the example provided by hybridauth in | ||
user/vendors/hybridauth/config.php to get started. | ||
5.) Place the hybrid auth configuration file into your application | ||
protected/config/hybridauth.php. If necessary, this path can be configured with | ||
the hybridAuthConfigFile option. You can use the example provided by | ||
hybridauth in user/vendors/hybridauth/config.php to get started. | ||
|
||
6.) Navigate to your login page. The configured providers should appear beneath | ||
the login fields. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
Yii::app()->clientScript->registerCssFile( | ||
Yii::app()->getAssetManager()->publish( | ||
Yii::getPathOfAlias('YumModule.assets.css').'/yum.css')); | ||
|
||
$this->beginContent(Yum::module()->baseLayout); ?> | ||
|
||
<?php | ||
if (Yum::module()->debug) { | ||
echo CHtml::openTag('div', array('class' => 'yumwarning')); | ||
echo Yum::t( | ||
'You are running the Yii User Management Module {version} in Debug Mode!', array( | ||
'{version}' => Yum::module()->version)); | ||
echo CHtml::closeTag('div'); | ||
} | ||
|
||
Yum::renderFlash(); | ||
|
||
echo $content; | ||
?> | ||
|
||
<div class="clearfix"></div> | ||
|
||
<?php $this->endContent(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters