mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
feat(web): add autocomplete fields to first factor and reset password pages (#2125)
This commit is contained in:
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
Block a user