mirror of
https://github.com/elyby/accounts.git
synced 2024-12-28 16:10:40 +05:30
Методы в Authserver AuthenticationController прикрыты verb фильтром
This commit is contained in:
parent
66e266692c
commit
1023eed03b
@ -13,6 +13,16 @@ class AuthenticationController extends Controller {
|
|||||||
return $behaviors;
|
return $behaviors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function verbs() {
|
||||||
|
return [
|
||||||
|
'authenticate' => ['POST'],
|
||||||
|
'refresh' => ['POST'],
|
||||||
|
'validate' => ['POST'],
|
||||||
|
'signout' => ['POST'],
|
||||||
|
'invalidate' => ['POST'],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
public function actionAuthenticate() {
|
public function actionAuthenticate() {
|
||||||
$model = new models\AuthenticationForm();
|
$model = new models\AuthenticationForm();
|
||||||
$model->loadByPost();
|
$model->loadByPost();
|
||||||
|
Loading…
Reference in New Issue
Block a user