/Users/Crisu/Dev/Web/GitHub/NordSoftware/yii-account/src/Module.php(204)
192 $token = $tokenGenerator->generate(); 193 194 $modelClass = $this->getClassName(Module::CLASS_TOKEN_MODEL); 195 196 /** @var \nordsoftware\yii_account\models\ar\AccountToken $model */ 197 $model = new $modelClass(); 198 $model->type = $type; 199 $model->accountId = $accountId; 200 $model->token = $token; 201 $model->expiresAt = $expires; 202 203 if (!$model->save()) { 204 throw new Exception('Failed to save token.'); 205 } 206 207 return $token; 208 } 209 210 /** 211 * Loads a token of a specific type. 212 * 213 * @param string $type token type. 214 * @param string $token token string. 215 * @throws \nordsoftware\yii_account\exceptions\Exception 216 * @return \nordsoftware\yii_account\models\ar\AccountToken
#0 |
+
–
/Users/Crisu/Dev/Web/GitHub/NordSoftware/yii-account/src/controllers/Controller.php(71): nordsoftware\yii_account\Module->generateToken("resetPassword", null, "2014-06-06 11:10:23") 66 * @param string $expires token expiration date (mysql date). 67 * @return string the generated token. 68 */ 69 public function generateToken($type, $accountId, $expires) 70 { 71 return $this->module->generateToken($type, $accountId, $expires); 72 } 73 74 /** 75 * Loads a token of a specific type. 76 * |
#1 |
+
–
/Users/Crisu/Dev/Web/GitHub/NordSoftware/yii-account/src/controllers/PasswordController.php(83): nordsoftware\yii_account\controllers\Controller->generateToken("resetPassword", null, "2014-06-06 11:10:23") 78 79 $token = $this->generateToken( 80 Module::TOKEN_RESET_PASSWORD, 81 $account->id, 82 Helper::sqlDateTime(time() + $this->module->resetPasswordExpireTime) 83 ); 84 85 $resetUrl = $this->createAbsoluteUrl('/account/password/reset', array('token' => $token)); 86 87 $this->module->sendMail( 88 $account->email, |
#2 |
+
–
/Users/Crisu/Dev/Web/GitHub/NordSoftware/yii-account/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): nordsoftware\yii_account\controllers\PasswordController->actionForgot() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#3 |
+
–
/Users/Crisu/Dev/Web/GitHub/NordSoftware/yii-account/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "account/password/forgot")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#4 |
+
–
/Users/Crisu/Dev/Web/GitHub/NordSoftware/yii-account/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction) 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#5 |
+
–
/Users/Crisu/Dev/Web/GitHub/NordSoftware/yii-account/vendor/yiisoft/yii/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#6 |
+
–
/Users/Crisu/Dev/Web/GitHub/NordSoftware/yii-account/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("guestOnly + index", "validateToken + reset")) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#7 |
+
–
/Users/Crisu/Dev/Web/GitHub/NordSoftware/yii-account/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run("forgot") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#8 |
+
–
/Users/Crisu/Dev/Web/GitHub/NordSoftware/yii-account/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("account/password/forgot") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#9 |
+
–
/Users/Crisu/Dev/Web/GitHub/NordSoftware/yii-account/vendor/yiisoft/yii/framework/base/CApplication.php(184): CWebApplication->processRequest() 179 public function run() 180 { 181 if($this->hasEventHandler('onBeginRequest')) 182 $this->onBeginRequest(new CEvent($this)); 183 register_shutdown_function(array($this,'end'),0,false); 184 $this->processRequest(); 185 if($this->hasEventHandler('onEndRequest')) 186 $this->onEndRequest(new CEvent($this)); 187 } 188 189 /** |
#10 |
+
–
/Users/Crisu/Dev/Web/GitHub/NordSoftware/yii-account/tests/app/www/index.php(16): CApplication->run() 11 require("$vendor/autoload.php"); 12 require("$vendor/yiisoft/yii/framework/yii.php"); 13 14 $config = require("$tests/app/config/web.php"); 15 16 Yii::createWebApplication($config)->run(); |