Added CSRF protection to all API calls. /api/account AJAX calls updated.
This commit is contained in:
parent
7e0c8e72c5
commit
106b0fcddb
11 changed files with 149 additions and 14 deletions
|
|
@ -35,7 +35,7 @@ const router = Router();
|
|||
//login
|
||||
router.post('/login', accountValidator.user(), accountValidator.pass(), loginController.post);
|
||||
//logout
|
||||
router.get('/logout', logoutController.get);
|
||||
router.post('/logout', logoutController.post);
|
||||
//register
|
||||
router.post('/register', accountValidator.user(),
|
||||
accountValidator.securePass(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue