Merge branch 'develop' of https://github.com/Pterodactyl/Panel into develop

This commit is contained in:
Dane Everitt 2020-04-12 12:22:53 -07:00
commit 4ed7b26f89
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
29 changed files with 414 additions and 137 deletions

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