Use new property to enable social network registration in registration controller
This commit is contained in:
@ -152,6 +152,10 @@ class RegistrationController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function actionConnect($code)
|
public function actionConnect($code)
|
||||||
{
|
{
|
||||||
|
if (!$this->module->enableSocialNetworkRegistration) {
|
||||||
|
throw new NotFoundHttpException();
|
||||||
|
}
|
||||||
|
|
||||||
/** @var SocialNetworkAccount $account */
|
/** @var SocialNetworkAccount $account */
|
||||||
$account = $this->socialNetworkAccountQuery->whereCode($code)->one();
|
$account = $this->socialNetworkAccountQuery->whereCode($code)->one();
|
||||||
if ($account === null || $account->getIsConnected()) {
|
if ($account === null || $account->getIsConnected()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user