mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-13 15:26:10 +00:00
fix(cockpit): disable autocomplete in Login component
This commit is contained in:
parent
c25c644b5a
commit
3ddcd1f825
@ -4,12 +4,12 @@ import logo from '../images/logo-new.svg';
|
|||||||
import './Login.css';
|
import './Login.css';
|
||||||
|
|
||||||
class Login extends React.Component {
|
class Login extends React.Component {
|
||||||
constructor(props){
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = props.credentials;
|
this.state = props.credentials;
|
||||||
}
|
}
|
||||||
|
|
||||||
handleChange(event){
|
handleChange(event) {
|
||||||
this.setState({[event.target.name]: event.target.value});
|
this.setState({[event.target.name]: event.target.value});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,8 +47,11 @@ class Login extends React.Component {
|
|||||||
name="token"
|
name="token"
|
||||||
placeholder="Enter token"
|
placeholder="Enter token"
|
||||||
onChange={(e) => this.handleChange(e)}
|
onChange={(e) => this.handleChange(e)}
|
||||||
|
autoComplete="off"
|
||||||
value={this.state.token}/>
|
value={this.state.token}/>
|
||||||
<small className="form-text text-muted">Execute <code>embark run</code> in the command line to get your token.</small>
|
<small className="form-text text-muted">Execute <code>embark run</code> in the command line to get
|
||||||
|
your token.
|
||||||
|
</small>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" className="btn btn-pill btn-dark">Enter Cockpit</button>
|
<button type="submit" className="btn btn-pill btn-dark">Enter Cockpit</button>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user