Fix encryption issue when creating new nodes

This commit is contained in:
Matthew Penner 2020-04-11 20:49:56 -06:00
parent 3d224993cd
commit a4d49ebe31

View file

@ -41,8 +41,8 @@ class NodeCreationService
*/
public function handle(array $data)
{
$data['daemon_token'] = Str::random(Node::DAEMON_TOKEN_LENGTH);
$data['daemon_token_id'] = $this->encrypter->encrypt(Str::random(Node::DAEMON_TOKEN_ID_LENGTH));
$data['daemon_token'] = $this->encrypter->encrypt(Str::random(Node::DAEMON_TOKEN_LENGTH));
$data['daemon_token_id'] = Str::random(Node::DAEMON_TOKEN_ID_LENGTH);
return $this->repository->create($data, true, true);
}