fix(striker-ui-api): revert database user to 'admin' in create host connection

main
Tsu-ba-me 1 year ago
parent 56120a8333
commit 4182219e86
  1. 2
      striker-ui-api/src/lib/request_handlers/host/createHostConnection.ts

@ -25,7 +25,7 @@ export const createHostConnection: RequestHandler<
const commonIsPing = sanitize(isPing, 'boolean'); const commonIsPing = sanitize(isPing, 'boolean');
const commonPassword = sanitize(password, 'string'); const commonPassword = sanitize(password, 'string');
const commonDBPort = sanitize(port, 'number', { fallback: 5432 }); const commonDBPort = sanitize(port, 'number', { fallback: 5432 });
const commonDBUser = sanitize(user, 'string', { fallback: 'root' }); const commonDBUser = sanitize(user, 'string', { fallback: 'admin' });
const peerIPAddress = sanitize(ipAddress, 'string'); const peerIPAddress = sanitize(ipAddress, 'string');
const peerSSHPort = sanitize(sshPort, 'number', { fallback: 22 }); const peerSSHPort = sanitize(sshPort, 'number', { fallback: 22 });

Loading…
Cancel
Save