renamed middleware to applyCSRF, re: #2082

This commit is contained in:
Julian Lam
2014-09-17 16:11:11 -04:00
parent 0b7a21b8d1
commit cd135dda13
5 changed files with 30 additions and 30 deletions

View File

@@ -197,8 +197,8 @@
/* End backwards compatibility block */
app.post('/logout', logout);
app.post('/register', middleware.requireCSRF, register);
app.post('/login', middleware.requireCSRF, login);
app.post('/register', middleware.applyCSRF, register);
app.post('/login', middleware.applyCSRF, login);
});
});
};