UsrController sendEmail method contains incorrect use of createAbsoluteUrl method of UrlManager class. This causes URL without GET parameters in email. Below is the working code:
You could have created a pull request with that fix. I'm sorry but I'm not currently using Yii 2 at all so I don't have the opportunity to test such things myself.
UsrController sendEmail method contains incorrect use of createAbsoluteUrl method of UrlManager class. This causes URL without GET parameters in email. Below is the working code:
$params['actionUrl'] = Yii::$app->getUrlManager()->createAbsoluteUrl($this->module->id.'/default/'.$mode, [ 'activationKey'=>$model->getIdentity()->getActivationKey(), 'username'=>$model->getIdentity()->username, ]);
Could this be included to repository? Or is there any way of overriding controllers? Please, advise.
Thank you.