我无法尝试隐藏密码和确认密码字符。
redux表格是否严格要求name =“password”,或者我可以调用name =“password1”。
当我输入name =“password”时,字段似乎只隐藏我的密码字符,即使已经输入type =“password”。
<form onSubmit={handleSubmit(this.handleFormSubmit.bind(this))}>
<div>
<Field
label="Username"
name="username"
component={this.renderField}
type="text"
/>
</div>
<div>
<Field
label="Email"
name="email"
component={this.renderField}
type="text"
/>
</div>
<div>
<Field
label="First Name"
name="first_name"
component={this.renderField}
type="text"
/>
</div>
<div>
<Field
label="Last Name"
name="last_name"
component={this.renderField}
type="text"
/>
</div>
<div>
<Field
label="Password"
name="password1"
component={this.renderField}
type="password"
/>
</div>
<div>
<Field
label="Confirm Password"
name="password2"
component={this.renderField}
type="password"
/>
</div>
{this.renderAlert()}
<div className="signin-button">
<button action="submit" className="btn btn-primary">Sign up!</button>
</div>
<div className="g-signin2" id="my-signin2" data-width="200"/>
<Link to="/signin">Already an user?</Link>
</form>