feat(web): add autocomplete fields to first factor and reset password pages (#2125)
parent
87c3985c75
commit
851396c972
|
@ -95,6 +95,7 @@ const FirstFactorForm = function (props: Props) {
|
|||
onChange={(v) => setUsername(v.target.value)}
|
||||
onFocus={() => setUsernameError(false)}
|
||||
autoCapitalize="none"
|
||||
autoComplete="username"
|
||||
onKeyPress={(ev) => {
|
||||
if (ev.key === "Enter") {
|
||||
if (!username.length) {
|
||||
|
@ -124,6 +125,7 @@ const FirstFactorForm = function (props: Props) {
|
|||
onChange={(v) => setPassword(v.target.value)}
|
||||
onFocus={() => setPasswordError(false)}
|
||||
type="password"
|
||||
autoComplete="current-password"
|
||||
onKeyPress={(ev) => {
|
||||
if (ev.key === "Enter") {
|
||||
if (!username.length) {
|
||||
|
|
|
@ -99,6 +99,7 @@ const ResetPasswordStep2 = function () {
|
|||
onChange={(e) => setPassword1(e.target.value)}
|
||||
error={errorPassword1}
|
||||
className={classnames(style.fullWidth)}
|
||||
autoComplete="new-password"
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item xs={12}>
|
||||
|
@ -118,6 +119,7 @@ const ResetPasswordStep2 = function () {
|
|||
}
|
||||
}}
|
||||
className={classnames(style.fullWidth)}
|
||||
autoComplete="new-password"
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item xs={6}>
|
||||
|
|
Loading…
Reference in New Issue