customerapi: on cancel check also registration ownership
This commit is contained in:
@@ -38,43 +38,43 @@ class SiteController extends Controller
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function actions()
|
||||
{
|
||||
return [
|
||||
'error' => [
|
||||
'class' => 'yii\web\ErrorAction',
|
||||
],
|
||||
'captcha' => [
|
||||
'class' => 'yii\captcha\CaptchaAction',
|
||||
'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null,
|
||||
],
|
||||
];
|
||||
}
|
||||
// /**
|
||||
// * @inheritdoc
|
||||
// */
|
||||
// public function actions()
|
||||
// {
|
||||
// return [
|
||||
// 'error' => [
|
||||
// 'class' => 'yii\web\ErrorAction',
|
||||
// ],
|
||||
// 'captcha' => [
|
||||
// 'class' => 'yii\captcha\CaptchaAction',
|
||||
// 'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null,
|
||||
// ],
|
||||
// ];
|
||||
// }
|
||||
|
||||
/**
|
||||
* Displays homepage.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function actionIndex()
|
||||
{
|
||||
return $this->render('index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs out the current user.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function actionLogout()
|
||||
{
|
||||
Yii::$app->user->logout();
|
||||
|
||||
return $this->goHome();
|
||||
}
|
||||
// /**
|
||||
// * Displays homepage.
|
||||
// *
|
||||
// * @return mixed
|
||||
// */
|
||||
// public function actionIndex()
|
||||
// {
|
||||
// return $this->render('index');
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * Logs out the current user.
|
||||
// *
|
||||
// * @return mixed
|
||||
// */
|
||||
// public function actionLogout()
|
||||
// {
|
||||
// Yii::$app->user->logout();
|
||||
//
|
||||
// return $this->goHome();
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user