Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
feat(views/layout ): Add Quick Csrf Input refs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Jul 28, 2019
1 parent 4e60ee8 commit 2c3a2fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- **redis_key:** Fix array value cause parser error

### Perf
- **Site:** try to cache re-hit
- **Tracker:** Use brpoplpush to get announce data from redis
- **captcha:** simple captcha input
- **tracker:** No need to explicit serialize announce data
Expand Down
10 changes: 10 additions & 0 deletions apps/views/layout/csrf.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
/**
* Created by PhpStorm.
* User: Rhilip
* Date: 7/28/2019
* Time: 9:43 PM
*/
?>

<label for="csrf" class="hidden"><input id="csrf" name="csrf" value="<?= app()->session->setCsrfToken() ?>"></label>

0 comments on commit 2c3a2fd

Please sign in to comment.