Skip to content
Snippets Groups Projects
Commit 1c3b33e6 authored by Arie Peterson's avatar Arie Peterson
Browse files

Merge branch '192-do-not-autocomplete-totp-input-field' into 'main'

Resolve "Do not autocomplete totp input field"

Closes #192

See merge request !170
parents 716244ae e7fe3f39
No related branches found
No related tags found
1 merge request!170Resolve "Do not autocomplete totp input field"
Pipeline #44516 passed with stages
in 3 minutes and 8 seconds
# Changelog
## Unreleased
- Do not autocomplete totp input field.
## [0.9.0]
- Improve user listing: show label for admin users, show last login and
......
......@@ -527,7 +527,9 @@ function getFormElement(node, context) {
"TOTP code",
"Please enter the code from your TOTP/authenticator app.",
null,
messages
messages,
null,
false
);
}
......@@ -579,6 +581,8 @@ function getFormElement(node, context) {
// param help: Additional help text, displayed below the field in small font
// param messages: Message about failed input
// param readonly: Whether the input should be readonly (defaults to false)
// param autocomplete: Whether the input should be autocompleted by the browser
// (defaults to true)
function getFormInput(
type,
name,
......@@ -587,7 +591,8 @@ function getFormInput(
placeHolder,
help,
messages,
readonly
readonly,
autocomplete
) {
if (typeof help == "undefined" || help == null) {
help = "";
......@@ -595,6 +600,9 @@ function getFormInput(
if (typeof readonly == "undefined") {
readonly = false;
}
if (typeof autocomplete == "undefined") {
autocomplete = true;
}
console.log("Messages: ", messages);
// Id field for help element
......@@ -632,6 +640,9 @@ function getFormInput(
if (readonly) {
element += "readonly ";
}
if (! autocomplete) {
element += "autocomplete=\"off\" ";
}
element += ">";
if (help) {
......
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 2.0.3
digest: sha256:dfd07906c97f7fca7593af69d01f6f044e10a609a03057352142766a5caca6cd
generated: "2022-09-29T15:38:57.444746866+02:00"
version: 2.14.1
digest: sha256:31e157c847d806f07ddd0518316a205c315829105cd69ef5c79eff92e2f28967
generated: "2024-01-30T13:59:56.425668471+01:00"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment