vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 18abf226bee7675a97432050882ed8299d6c64ab
parent 393645617efa6866001d40cc7f6a9485947e9b23
Author: BlackDex <black.dex@gmail.com>
Date:   Sun, 30 Apr 2023 17:09:42 +0200

Fix admin post endpoints

Diffstat:
Msrc/static/scripts/admin_settings.js | 4++--
Msrc/static/scripts/admin_users.js | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/static/scripts/admin_settings.js b/src/static/scripts/admin_settings.js @@ -19,7 +19,7 @@ function smtpTest(event) { } const data = JSON.stringify({ "email": test_email.value }); - _post(`${BASE_URL}/admin/test/smtp/`, + _post(`${BASE_URL}/admin/test/smtp`, "SMTP Test email sent correctly", "Error sending SMTP test email", data, false @@ -45,7 +45,7 @@ function getFormData() { function saveConfig(event) { const data = JSON.stringify(getFormData()); - _post(`${BASE_URL}/admin/config/`, + _post(`${BASE_URL}/admin/config`, "Config saved correctly", "Error saving config", data diff --git a/src/static/scripts/admin_users.js b/src/static/scripts/admin_users.js @@ -113,7 +113,7 @@ function inviteUser(event) { "email": email.value }); email.value = ""; - _post(`${BASE_URL}/admin/invite/`, + _post(`${BASE_URL}/admin/invite`, "User invited correctly", "Error inviting user", data