diff --git a/src/CoreBundle/Entity/User.php b/src/CoreBundle/Entity/User.php index b76ff6c401..a0f79e142f 100644 --- a/src/CoreBundle/Entity/User.php +++ b/src/CoreBundle/Entity/User.php @@ -750,7 +750,7 @@ class User implements UserInterface, EquatableInterface, ResourceInterface public function __construct() { $this->uuid = Uuid::v4(); - $this->apiToken = ''; + $this->apiToken = null; $this->status = self::STUDENT; $this->salt = sha1(uniqid(null, true)); $this->active = true;