Merge pull request #1911 from pterodactyl/fix/encrypter

Fix encryption issue when creating new nodes
This commit is contained in:
Dane Everitt 2020-04-12 10:12:43 -07:00 committed by GitHub
commit b2847eb0e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}