{
- if (ev.key == "Enter") {
- this.submitForm(ev);
- }
- const el = ev.target as HTMLInputElement;
- // Because the password field is not actually on this page,
- // and we want to 'prefill' the password for the user,
- // save it globally
- PasswordManagerPrefill.password = el.value;
- // Because password managers fill username, then password,
- // we need to re-focus the uid_field here too
- (this.shadowRoot || this)
- .querySelectorAll("input[name=uidField]")
- .forEach((input) => {
- // Because we assume only one input field exists that matches this
- // call focus so the user can press enter
- input.focus();
- });
- };
- this.form.appendChild(password);
+ // Only add the password field when we don't already show a password field
+ if (!compatMode && !this.challenge.passwordFields) {
+ const password = document.createElement("input");
+ password.setAttribute("type", "password");
+ password.setAttribute("name", "password");
+ password.setAttribute("autocomplete", "current-password");
+ password.onkeyup = (ev: KeyboardEvent) => {
+ if (ev.key == "Enter") {
+ this.submitForm(ev);
+ }
+ const el = ev.target as HTMLInputElement;
+ // Because the password field is not actually on this page,
+ // and we want to 'prefill' the password for the user,
+ // save it globally
+ PasswordManagerPrefill.password = el.value;
+ // Because password managers fill username, then password,
+ // we need to re-focus the uid_field here too
+ (this.shadowRoot || this)
+ .querySelectorAll("input[name=uidField]")
+ .forEach((input) => {
+ // Because we assume only one input field exists that matches this
+ // call focus so the user can press enter
+ input.focus();
+ });
+ };
+ this.form.appendChild(password);
+ }
const totp = document.createElement("input");
totp.setAttribute("type", "text");
totp.setAttribute("name", "code");
diff --git a/web/xliff/de.xlf b/web/xliff/de.xlf
index 1e95e6975..a1737f42f 100644
--- a/web/xliff/de.xlf
+++ b/web/xliff/de.xlf
@@ -6037,6 +6037,12 @@ Bindings to groups/users are checked against the user of the event.
+
+
+
+
+
+