Example #1
0
 public function actionForgot()
 {
     $sended = null;
     $model = new ForgotForm();
     if (isset($_POST['ForgotForm'])) {
         $model->setAttributes($_POST['ForgotForm']);
         if ($model->validate()) {
             Mailer::sendForgotMail($model->email);
             $sended = true;
         } else {
             $sended = false;
         }
     }
     $this->render('forgot', array('sended' => $sended, 'model' => $model));
 }