customerapi: on cancel check also registration ownership

This commit is contained in:
2021-10-07 08:09:16 +02:00
parent 89b3ab4ce5
commit b993f5dee0
5 changed files with 49 additions and 67 deletions

View File

@@ -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();
// }