mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-10-25 21:04:30 +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
@@ -265,12 +265,12 @@ const AccountForm = props => {
|
||||
}
|
||||
|
||||
const axiosData = {
|
||||
name,
|
||||
sip_realm: sipRealm || null,
|
||||
name: name.trim(),
|
||||
sip_realm: sipRealm.trim() || null,
|
||||
registration_hook: {
|
||||
url: regWebhook,
|
||||
url: regWebhook.trim(),
|
||||
method: method,
|
||||
username: user || null,
|
||||
username: user.trim() || null,
|
||||
password: password || null,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user