mirror of
https://github.com/crivion/laranode.git
synced 2026-05-06 13:41:02 +08:00
mysql: update db vibecoding fix:))
This commit is contained in:
@@ -161,7 +161,7 @@ class MysqlController extends Controller
|
||||
];
|
||||
|
||||
// Update password if provided
|
||||
if ($newPassword) {
|
||||
if ($request->filled('db_password')) {
|
||||
$updateData['db_password'] = $newPassword;
|
||||
|
||||
// Update MySQL user password
|
||||
|
||||
@@ -20,7 +20,7 @@ export default function EditDatabaseForm({ database }) {
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
const { data, setData, patch, processing, reset, clearErrors, errors } = useForm({
|
||||
id: database.id,
|
||||
id: database.id || 0,
|
||||
charset: database.charset || 'utf8mb4',
|
||||
collation: database.collation || 'utf8mb4_unicode_ci',
|
||||
db_password: '',
|
||||
|
||||
Reference in New Issue
Block a user