← Back to Social Login Support
vojcas23174
After login through facebook returns an exception:
October\Rain\Database\ModelException
262 263 264 265 266 267 268 269 270 271 272 273 274
if ($this->methodExists('afterValidate')) {
$this->afterValidate();
}
if (!$success && $throwOnValidation) {
throw new ModelException($this);
}
return $success;
}
/**
STACK TRACE
ladyginpro
\plugins\flynsarmy\sociallogin\socialloginproviders\Facebook.php
use URL;
added after:
use Validator;
public function handleProviderCallback()
$profile = $this->getAdapter()->getUserProfile();
added after:
$validatorEmail = Validator::make(
[ 'email' => $profile->email ],
[ 'email' => 'required|email' ]
);
if ($validatorEmail->fails()) {
$profile->email = $profile->identifier.'@'.$_SERVER['SERVER_NAME'];
}
Last updated
1-4 of 4