mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-10-16 16:34:27 +00:00
Trim inputs before submitting to API (all except passwords)
This commit is contained in:
1 parent
6e87b31880
commit
eda0956dcd
4 files changed
+22
-20
No files matched your search
@@ -321,17 +321,17 @@ const ApplicationForm = props => {
|
||||
|
||||
const data = {
|
||||
account_sid: accountSid,
|
||||
name,
|
||||
name: name.trim(),
|
||||
call_hook: {
|
||||
url: callWebhook,
|
||||
url: callWebhook.trim(),
|
||||
method: callWebhookMethod,
|
||||
username: callWebhookUser || null,
|
||||
username: callWebhookUser.trim() || null,
|
||||
password: callWebhookPass || null,
|
||||
},
|
||||
call_status_hook: {
|
||||
url: statusWebhook,
|
||||
url: statusWebhook.trim(),
|
||||
method: statusWebhookMethod,
|
||||
username: statusWebhookUser || null,
|
||||
username: statusWebhookUser.trim() || null,
|
||||
password: statusWebhookPass || null,
|
||||
},
|
||||
speech_synthesis_vendor: speechSynthesisVendor,
|
||||
|
||||
Reference in new issue
Block a user