Skip to content

Commit

Permalink
ui: add attributes to login form so LastPass will autofill it
Browse files Browse the repository at this point in the history
LastPass wasn't confident enough to autofill and autologin without these
attributes.

Release note (admin ui change): Add attributes to the login form to allow
LastPass to properly recognize it.
  • Loading branch information
Pete Vilter committed Sep 4, 2018
1 parent 55e3da6 commit 86a54d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/ui/src/views/login/loginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,18 @@ class LoginPage extends React.Component<LoginPageProps & WithRouterProps, LoginP
<div className="form-container">
<h1 className="heading">Log in to the Web UI</h1>
{this.renderError()}
<form onSubmit={this.handleSubmit} className="form-internal">
<form onSubmit={this.handleSubmit} className="form-internal" method="post">
<input
type="text"
name="username"
className={inputClasses}
onChange={this.handleUpdateUsername}
value={this.state.username}
placeholder="Username"
/>
<input
type="password"
name="password"
className={inputClasses}
onChange={this.handleUpdatePassword}
value={this.state.password}
Expand Down

0 comments on commit 86a54d7

Please sign in to comment.