Changed login method from put to post

This commit is contained in:
2017-09-11 08:52:35 +07:00
parent 94d4a76ec6
commit 04ac2155db
2 changed files with 43 additions and 41 deletions

View File

@@ -68,7 +68,9 @@ class Router
// Check the token
if (Token::check($var['_token'])) {
// Get the method
$action = $var['_method'];
if (isset($var['_method'])) {
$action = $var['_method'];
}
} else {
// Token invalid
throw new \Exception("Token invalid", 498);