Development

- Optimized `.gitignore`.
- Renamed `XSRF-TOKEN` constant to `CSRF-TOKEN` in `CsrfToken`.
This commit is contained in:
Simon Sessingø
2017-07-08 11:56:57 +02:00
parent 9eb7c5c13c
commit 1ac7761d35
2 changed files with 3 additions and 4 deletions

3
.gitignore vendored
View File

@@ -1,4 +1,3 @@
.idea
composer.lock
vendor/
demo-project/vendor
vendor/

View File

@@ -3,7 +3,7 @@ namespace Pecee;
class CsrfToken
{
const CSRF_KEY = 'XSRF-TOKEN';
const CSRF_KEY = 'CSRF-TOKEN';
protected $token;
@@ -60,7 +60,7 @@ class CsrfToken
*/
public function getToken()
{
if ($this->hasToken()) {
if ($this->hasToken() === true) {
return $_COOKIE[static::CSRF_KEY];
}