nineinchnick / yii2-usr

Yii framework module for user authentication, password reset, registration and profile updating. A port of yii-usr to Yii Framework 2.0.
http://demo2.niix.pl
MIT License
39 stars 8 forks source link

Account verification issue #35

Closed sulim-vladimir closed 10 years ago

sulim-vladimir commented 10 years ago

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.

nineinchnick commented 10 years ago

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.