mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-11 23:24:32 +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.
|
||||
|
||||
|
||||
|
||||
### 0.4.40 (5/19/16)
|
||||
|
||||
- Fixes:
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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} />
|
||||
|
|
Loading…
Add table
Reference in a new issue