Skip to content

Commit

Permalink
remove some csrf
Browse files Browse the repository at this point in the history
  • Loading branch information
helloyou2012 committed Aug 30, 2016
1 parent d76a9c6 commit 07ea985
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion examples/example2.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if (!module.parent) {
id: 'bd0e56c1-8f02-49f3-b502-129da70b6f09',
name: 'test',
secret: '12345678',
redirect_uri: 'http://oa.cnood.com'
redirect_uri: 'http://localhost:9090'
});
yield orm.DicRole.create({
name: 'user',
Expand Down
1 change: 0 additions & 1 deletion views/admin/roles.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
Add Role
</button>
<form action="/roles" method="get" class="form-inline">
<input type="hidden" name="_csrf" value="{{_csrf}}">
<input type="text" name="q" class="form-control input-sm" value="{{q}}">
<button type="submit" class="btn btn-primary btn-sm">Search</button>
</form>
Expand Down

0 comments on commit 07ea985

Please sign in to comment.