mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 01:27:31 +00:00
Fix pwd rotation syntax
This commit is contained in:
@@ -115,7 +115,7 @@ const makeSqlConnection = (
|
|||||||
},
|
},
|
||||||
rotateCredentials: async (currentCredentials) => {
|
rotateCredentials: async (currentCredentials) => {
|
||||||
const newPassword = alphaNumericNanoId(32);
|
const newPassword = alphaNumericNanoId(32);
|
||||||
await client.raw(`ALTER USER ?? WITH PASSWORD ?'`, [currentCredentials.username, newPassword]);
|
await client.raw(`ALTER USER ?? WITH PASSWORD ?`, [currentCredentials.username, newPassword]);
|
||||||
return { username: currentCredentials.username, password: newPassword };
|
return { username: currentCredentials.username, password: newPassword };
|
||||||
},
|
},
|
||||||
close: () => client.destroy()
|
close: () => client.destroy()
|
||||||
|
|||||||
Reference in New Issue
Block a user