minor changes
This commit is contained in:
1 parent
6f57762c59
commit
834f92267c
5 files changed
+209
-76
No files matched your search
@@ -125,14 +125,18 @@ class SiteController extends Controller
|
||||
if($model->validate())
|
||||
{
|
||||
|
||||
$oldPassword = $model->password;
|
||||
$model->password = $this->better_crypt($model->password);
|
||||
|
||||
$model->save();
|
||||
if ($model->save())
|
||||
{
|
||||
|
||||
//$this->redirect(Yii::app()->user->returnUrl);
|
||||
$this->redirect(array("site/login"));
|
||||
|
||||
return;
|
||||
}
|
||||
$model->password = $oldPassword;
|
||||
}
|
||||
}
|
||||
$this->render('register',array('model'=>$model));
|
||||
|
||||
Reference in new issue
Block a user