mirror of
https://github.com/elyby/accounts.git
synced 2024-12-27 07:30:18 +05:30
Методы в Authserver AuthenticationController прикрыты verb фильтром
This commit is contained in:
parent
66e266692c
commit
1023eed03b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user