Stop trimming SASL and server passwords

This commit is contained in:
Ken-Håvard Lieng 2020-06-24 07:46:13 +02:00
parent e0ca9d5d8c
commit 45f8795fad
2 changed files with 58 additions and 60 deletions

File diff suppressed because one or more lines are too long

View File

@ -60,7 +60,7 @@ class Connect extends Component {
<div className="connect-section">
<h2>SASL</h2>
<TextInput name="account" />
<TextInput name="password" type="password" />
<TextInput name="password" type="password" noTrim />
</div>
{!hexIP && <TextInput name="username" />}
<TextInput
@ -231,8 +231,6 @@ export default withFormik({
const channels = values.channels ? values.channels.split(',') : [];
delete values.channels;
values.serverPassword = values.serverPassword.trim();
values.port = `${values.port}`;
connect(values);
select(values.host);