mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Add database password rotation to view
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Pterodactyl\Services\Databases;
|
||||
|
||||
use Webmozart\Assert\Assert;
|
||||
use Pterodactyl\Models\Database;
|
||||
use Illuminate\Database\ConnectionInterface;
|
||||
use Illuminate\Contracts\Encryption\Encrypter;
|
||||
@@ -63,6 +64,8 @@ class DatabasePasswordService
|
||||
public function handle($database, string $password): bool
|
||||
{
|
||||
if (! $database instanceof Database) {
|
||||
Assert::integerish($database);
|
||||
|
||||
$database = $this->repository->find($database);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user