mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-13 16:14:36 +08:00
fix(auth): ssl_required => true instead of "on"
This commit is contained in:
parent
6837c0d675
commit
856afb991a
4 changed files with 7 additions and 4 deletions
|
@ -55,7 +55,6 @@
|
||||||
in an infinite loading loop in some scenarios.
|
in an infinite loading loop in some scenarios.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### 0.4.40 (5/19/16)
|
### 0.4.40 (5/19/16)
|
||||||
|
|
||||||
- Fixes:
|
- Fixes:
|
||||||
|
|
|
@ -56,7 +56,11 @@ const CreatePageForForm = (FormComponent) => {
|
||||||
|
|
||||||
onFieldChange = (event) => {
|
onFieldChange = (event) => {
|
||||||
const changes = {};
|
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 accountInfo = Object.assign({}, this.state.accountInfo, changes);
|
||||||
const {errorFieldNames, errorMessage, populated} = FormComponent.validateAccountInfo(accountInfo);
|
const {errorFieldNames, errorMessage, populated} = FormComponent.validateAccountInfo(accountInfo);
|
||||||
|
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||||
const FormField = (props) => {
|
const FormField = (props) => {
|
||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
<label forHtml={props.field}>{props.title}:</label>
|
<label htmlFor={props.field}>{props.title}:</label>
|
||||||
<input
|
<input
|
||||||
type={props.type || "text"}
|
type={props.type || "text"}
|
||||||
id={props.field}
|
id={props.field}
|
||||||
|
|
|
@ -73,7 +73,7 @@ class AccountIMAPSettingsForm extends React.Component {
|
||||||
onKeyPress={onFieldKeyPress}
|
onKeyPress={onFieldKeyPress}
|
||||||
onChange={onFieldChange}
|
onChange={onFieldChange}
|
||||||
/>
|
/>
|
||||||
<label forHtml={`ssl_required`} className="checkbox">Require SSL</label>
|
<label htmlFor={`ssl_required`} className="checkbox">Require SSL</label>
|
||||||
</div>
|
</div>
|
||||||
<FormField field={`${type}_username`} title={"Username"} {...this.props} />
|
<FormField field={`${type}_username`} title={"Username"} {...this.props} />
|
||||||
<FormField field={`${type}_password`} title={"Password"} type="password" {...this.props} />
|
<FormField field={`${type}_password`} title={"Password"} type="password" {...this.props} />
|
||||||
|
|
Loading…
Add table
Reference in a new issue