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)}
|
onChange={(v) => setUsername(v.target.value)}
|
||||||
onFocus={() => setUsernameError(false)}
|
onFocus={() => setUsernameError(false)}
|
||||||
autoCapitalize="none"
|
autoCapitalize="none"
|
||||||
|
autoComplete="username"
|
||||||
onKeyPress={(ev) => {
|
onKeyPress={(ev) => {
|
||||||
if (ev.key === "Enter") {
|
if (ev.key === "Enter") {
|
||||||
if (!username.length) {
|
if (!username.length) {
|
||||||
|
@ -124,6 +125,7 @@ const FirstFactorForm = function (props: Props) {
|
||||||
onChange={(v) => setPassword(v.target.value)}
|
onChange={(v) => setPassword(v.target.value)}
|
||||||
onFocus={() => setPasswordError(false)}
|
onFocus={() => setPasswordError(false)}
|
||||||
type="password"
|
type="password"
|
||||||
|
autoComplete="current-password"
|
||||||
onKeyPress={(ev) => {
|
onKeyPress={(ev) => {
|
||||||
if (ev.key === "Enter") {
|
if (ev.key === "Enter") {
|
||||||
if (!username.length) {
|
if (!username.length) {
|
||||||
|
|
|
@ -99,6 +99,7 @@ const ResetPasswordStep2 = function () {
|
||||||
onChange={(e) => setPassword1(e.target.value)}
|
onChange={(e) => setPassword1(e.target.value)}
|
||||||
error={errorPassword1}
|
error={errorPassword1}
|
||||||
className={classnames(style.fullWidth)}
|
className={classnames(style.fullWidth)}
|
||||||
|
autoComplete="new-password"
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
|
@ -118,6 +119,7 @@ const ResetPasswordStep2 = function () {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
className={classnames(style.fullWidth)}
|
className={classnames(style.fullWidth)}
|
||||||
|
autoComplete="new-password"
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item xs={6}>
|
<Grid item xs={6}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user