public function getConnectUrl()
    {
        $code = \Yii::$app->security->generateRandomString();
        $this->updateAttributes(['code' => md5($code)]);

        return Url::to(['/user/registration/connect', 'code' => $code]);
    }
public function getConnectUrl()
    {
        $code = \Yii::$app->security->generateRandomString();
        $this->updateAttributes(['code' => md5($code)]);

        return Url::to(['/user/registration/connect', 'code' => $code]);
    }
public function getConnectUrl ( ) { $ code = \ Yii :: $ app -> security -> generateRandomString ( ) ; $ this -> updateAttributes ( [ 'code' => md5 ( $ code ) ] ) ; return Url :: to ( [ '/user/registration/connect' , 'code' => $ code ] ) ; }
Returns connect url.
@return string
Returns connect url .