Методы в Authserver AuthenticationController прикрыты verb фильтром

This commit is contained in:
ErickSkrauch 2016-08-31 13:32:51 +03:00
parent 66e266692c
commit 1023eed03b

View File

@ -13,6 +13,16 @@ class AuthenticationController extends Controller {
return $behaviors;
}
public function verbs() {
return [
'authenticate' => ['POST'],
'refresh' => ['POST'],
'validate' => ['POST'],
'signout' => ['POST'],
'invalidate' => ['POST'],
];
}
public function actionAuthenticate() {
$model = new models\AuthenticationForm();
$model->loadByPost();