authelia/internal
Amir Zarrinkafsh d82b46a3ec
[FEATURE] Autofocus on authentication and OTP pages (#806)
* [FEATURE] Autofocus on authentication and OTP pages
This change sets the input focus on the first factor authentication and OTP pages.

The behaviour for the first factor authentication page has also been amended slightly, if an incorrect username or password is provided the password field will be cleared and set as the focus.

One thing to note is that the OTP page does not focus on any re-rendering and this is because the component doesn't handle focusing. This means that the OTP input only is auto-focused when you first visit it, if you enter an incorrect OTP there will be no focus.

Ideally we should be looking for a different library or writing a component for this ourselves in future.

Closes #511.

* Add TODO markers for potential refactor
2020-04-01 10:27:54 +11:00
..
authentication [FEATURE][BREAKING] Allow users to sign in with email. (#792) 2020-03-31 09:36:04 +11:00
authorization [BUGFIX] Skip 2FA step if no ACL rule is two_factor (#684) 2020-03-06 11:31:09 +11:00
commands [FEATURE] Support Argon2id password hasing and improved entropy (#679) 2020-03-06 12:38:02 +11:00
configuration [FEATURE][BREAKING] Allow users to sign in with email. (#792) 2020-03-31 09:36:04 +11:00
duo [MISC] Add Detailed DUO Push Logging (#664) 2020-03-01 11:51:11 +11:00
handlers [FEATURE] TOTP Tuning Configuration Options and Fix Timer Graphic (#773) 2020-03-25 12:48:20 +11:00
logging [FEATURE] [BREAKING] Support writing logs in a file. (#686) 2020-03-09 20:57:53 +01:00
middlewares [MISC] Fail with an error message when X-Forwarded-* headers are missing (#631) 2020-02-13 13:12:37 +11:00
mocks [MISC] Add Detailed DUO Push Logging (#664) 2020-03-01 11:51:11 +11:00
models Move source code into internal directory to follow standard project layout. 2019-11-17 16:30:33 +01:00
notification [FEATURE] SMTPS support (#643) 2020-02-20 12:09:46 +11:00
regulation [FIX] Disable regulation when max_retries set to 0 (#584) 2020-01-27 22:54:24 +11:00
server [FEATURE] TOTP Tuning Configuration Options and Fix Timer Graphic (#773) 2020-03-25 12:48:20 +11:00
session [MISC] Fix comment dealing with aes implementation. (#791) 2020-03-29 10:07:05 +11:00
storage [FEATURE] Support MySQL as a storage backend. (#678) 2020-03-05 10:25:52 +11:00
suites [FEATURE] Autofocus on authentication and OTP pages (#806) 2020-04-01 10:27:54 +11:00
templates Force TLS and valid x509 certs in SMTP Notifier by default 2020-01-10 17:37:16 +01:00
utils [MISC] Fix comment dealing with aes implementation. (#791) 2020-03-29 10:07:05 +11:00