Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-22 05:10:29 +01:00
Fix admin post endpoints
Dieser Commit ist enthalten in:
Ursprung
393645617e
Commit
18abf226be
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
4
src/static/scripts/admin_settings.js
gevendort
4
src/static/scripts/admin_settings.js
gevendort
|
@ -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
|
||||
|
|
2
src/static/scripts/admin_users.js
gevendort
2
src/static/scripts/admin_users.js
gevendort
|
@ -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
|
||||
|
|
Laden …
In neuem Issue referenzieren