From cb66733e6dce10604c284c69c8a48fbc4f7ea89f Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 15 Apr 2024 15:47:56 -0400 Subject: [PATCH] remove password expire --- .../ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/SecretMainPage/components/ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsx b/frontend/src/views/SecretMainPage/components/ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsx index 1893276b0..8eb787606 100644 --- a/frontend/src/views/SecretMainPage/components/ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsx +++ b/frontend/src/views/SecretMainPage/components/ActionBar/CreateDynamicSecretForm/SqlDatabaseInputForm.tsx @@ -70,7 +70,7 @@ const getSqlStatements = (provider: SqlProviders) => { if (provider === SqlProviders.MySql) { return { creationStatement: - "CREATE USER \"{{username}}\"@'%' IDENTIFIED BY '{{password}}' PASSWORD EXPIRE;\nGRANT ALL ON \"{{database}}\".* TO \"{{username}}\"@'%';", + "CREATE USER \"{{username}}\"@'%' IDENTIFIED BY '{{password}}';\nGRANT ALL ON \"{{database}}\".* TO \"{{username}}\"@'%';", renewStatement: "", revocationStatement: 'REVOKE ALL PRIVILEGES ON "{{database}}".* FROM "{{username}}"@\'%\';\nDROP USER "{{username}}"@\'%\';'