Trim inputs before submitting to API (all except passwords)

This commit is contained in:
James Nuanez committed 2020-04-24 23:03:23 -07:00
1 parent 6e87b31880
commit eda0956dcd
4 files changed
+22 -20

No files matched your search

+4 -4
View File
@@ -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,
},
};