Skip to content

Commit dfb0e3a

Browse files
committed
Make social authenticator configurable.
1 parent 1c1a95c commit dfb0e3a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

config/users.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
'Social' => [
6060
// enable social login
6161
'login' => false,
62+
// enable social login
63+
'authenticator' => 'CakeDC/Users.Social',
6264
],
6365
'GoogleAuthenticator' => [
6466
// enable Google Authenticator

src/Controller/Component/UsersAuthComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected function _loadGoogleAuthenticator()
7979
protected function _loadSocialLogin()
8080
{
8181
$this->getController()->Auth->setConfig('authenticate', [
82-
'CakeDC/Users.Social'
82+
Configure::read('Users.Social.authenticator')
8383
], true);
8484
}
8585

0 commit comments

Comments
 (0)