Add database password rotation to view
This commit is contained in:
parent
f6ee885f26
commit
48c39abfcb
11 changed files with 178 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue