forked from Alex/Pterodactyl-Panel
Fix encryption issue when creating new nodes
This commit is contained in:
parent
3d224993cd
commit
a4d49ebe31
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user