fix(auth): ssl_required => true instead of "on"

This commit is contained in:
Ben Gotow 2016-06-30 13:38:42 -07:00
parent 6837c0d675
commit 856afb991a
4 changed files with 7 additions and 4 deletions

View file

@ -55,7 +55,6 @@
in an infinite loading loop in some scenarios.
### 0.4.40 (5/19/16)
- Fixes:

View file

@ -56,7 +56,11 @@ const CreatePageForForm = (FormComponent) => {
onFieldChange = (event) => {
const changes = {};
changes[event.target.id] = event.target.value;
if (event.target.type === 'checkbox') {
changes[event.target.id] = event.target.checked;
} else {
changes[event.target.id] = event.target.value;
}
const accountInfo = Object.assign({}, this.state.accountInfo, changes);
const {errorFieldNames, errorMessage, populated} = FormComponent.validateAccountInfo(accountInfo);

View file

@ -3,7 +3,7 @@ import React from 'react';
const FormField = (props) => {
return (
<span>
<label forHtml={props.field}>{props.title}:</label>
<label htmlFor={props.field}>{props.title}:</label>
<input
type={props.type || "text"}
id={props.field}

View file

@ -73,7 +73,7 @@ class AccountIMAPSettingsForm extends React.Component {
onKeyPress={onFieldKeyPress}
onChange={onFieldChange}
/>
<label forHtml={`ssl_required`} className="checkbox">Require SSL</label>
<label htmlFor={`ssl_required`} className="checkbox">Require SSL</label>
</div>
<FormField field={`${type}_username`} title={"Username"} {...this.props} />
<FormField field={`${type}_password`} title={"Password"} type="password" {...this.props} />