mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-21 03:24:46 +02:00
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)
|
public function handle(array $data)
|
||||||
{
|
{
|
||||||
$data['daemon_token'] = Str::random(Node::DAEMON_TOKEN_LENGTH);
|
$data['daemon_token'] = $this->encrypter->encrypt(Str::random(Node::DAEMON_TOKEN_LENGTH));
|
||||||
$data['daemon_token_id'] = $this->encrypter->encrypt(Str::random(Node::DAEMON_TOKEN_ID_LENGTH));
|
$data['daemon_token_id'] = Str::random(Node::DAEMON_TOKEN_ID_LENGTH);
|
||||||
|
|
||||||
return $this->repository->create($data, true, true);
|
return $this->repository->create($data, true, true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user