Sign in with Twitter button is working but there is some issue with undefined index 'provider'.
Also Sign in with Facebook button seems not working just redirecting back to login page.
CakePHP: 3.2.13
Users: 3.2.2
Update 1
I am very new with github issue so sorry for this type of issue.
After several hours of debugging I did the following things to work both twitter and facebook login.
I downgraded Users plugin to 3.1.6
With Users 3.1.6 Facebook login was working. But same with twitter.
I did following changes to able to login via twitter.
on SocialAuthenticate.php
if (!empty($data) && (!empty($data['email']) || !empty($requestDataEmail))) {
to
if (!empty($data) && (!empty($requestDataEmail))) {
on SocialBehavior.php
$accountData['avatar'] = str_replace('normal', 'square', $accountData['avatar']);
to
$accountData['avatar'] = str_replace('normal', '400x400', $accountData['avatar']);
I thought twitter made a little change on an avatar link. And i changed the last code to get larger avatar.
I will be very happy for any further advice using Users plugin for cakephp.
Thank you
Sign in with Twitter button is working but there is some issue with undefined index 'provider'.
Also Sign in with Facebook button seems not working just redirecting back to login page.
CakePHP: 3.2.13
Users: 3.2.2
Update 1
I am very new with github issue so sorry for this type of issue.
After several hours of debugging I did the following things to work both twitter and facebook login.
I downgraded Users plugin to 3.1.6
With Users 3.1.6 Facebook login was working. But same with twitter.
I did following changes to able to login via twitter.
on SocialAuthenticate.php
if (!empty($data) && (!empty($data['email']) || !empty($requestDataEmail))) {to
if (!empty($data) && (!empty($requestDataEmail))) {on SocialBehavior.php
$accountData['avatar'] = str_replace('normal', 'square', $accountData['avatar']);to
$accountData['avatar'] = str_replace('normal', '400x400', $accountData['avatar']);I thought twitter made a little change on an avatar link. And i changed the last code to get larger avatar.
I will be very happy for any further advice using Users plugin for cakephp.
Thank you