mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 06:13:45 +02:00
Match original database password length when doing a password reset (#1509)
This commit is contained in:
committed by
Dane Everitt
parent
fa4858f292
commit
4460b6835a
@@ -599,7 +599,7 @@ class ServersController extends Controller
|
||||
['id', '=', $request->input('database')],
|
||||
]);
|
||||
|
||||
$this->databasePasswordService->handle($database, str_random(20));
|
||||
$this->databasePasswordService->handle($database, str_random(24));
|
||||
|
||||
return response('', 204);
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ class DatabaseController extends Controller
|
||||
{
|
||||
$this->authorize('reset-db-password', $request->attributes->get('server'));
|
||||
|
||||
$password = str_random(20);
|
||||
$password = str_random(24);
|
||||
$this->passwordService->handle($request->attributes->get('database'), $password);
|
||||
|
||||
return response()->json(['password' => $password]);
|
||||
|
||||
Reference in New Issue
Block a user