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