Add CSRF protection.
This commit is contained in:
parent
8e47c74b68
commit
0910b16e1e
5 changed files with 68 additions and 7 deletions
|
@ -65,6 +65,7 @@ export function* create() {
|
|||
}
|
||||
|
||||
export function* cancel() {
|
||||
this.assertCSRF();
|
||||
const Users = this.db.Users;
|
||||
const user = yield Users.findOne({_id: this.session.user.id});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue