登录避免自动填充账号密码。

This commit is contained in:
tengge1 2019-10-24 20:52:27 +08:00
parent 4ea07e11ae
commit ff6cd352e6
3 changed files with 7 additions and 1 deletions

View File

@ -35,6 +35,7 @@ class LoginWindow extends React.Component {
<FormControl>
<Label>{_t('Username')}</Label>
<Input name={'username'} value={username} onChange={this.handleChange} />
<input type={'password'} className={'fake'}></input>
</FormControl>
<FormControl>
<Label>{_t('Password')}</Label>

View File

@ -0,0 +1,5 @@
.Window.Login>.wrap>.content>.Form>.FormControl>.fake{
position: absolute;
left: -10000px;
top: -10000px;
}

View File

@ -29,7 +29,7 @@ class Input extends React.Component {
max={max}
step={step}
disabled={disabled}
autoComplete={'new-password'}
autoComplete={'off'}
onFocus={this.handleFocus}
onChange={this.handleChange}
onInput={this.handleInput}