From fbfb35f6cdfca4867ee6124f9a2d8a59cc772ea5 Mon Sep 17 00:00:00 2001 From: Holger Woltersdorf Date: Sun, 21 Aug 2016 16:10:28 +0200 Subject: [PATCH] Fixed charset of raw token string to base64 --- src/Security/Token.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/Token.php b/src/Security/Token.php index 178b517..8813128 100644 --- a/src/Security/Token.php +++ b/src/Security/Token.php @@ -27,7 +27,7 @@ final class Token implements IdentifiesFormRequestSource public function __construct() { - $this->token = random_bytes( 64 ); + $this->token = base64_encode( random_bytes( 64 ) ); } /**