Add form to authenticator page

This commit is contained in:
2022-04-19 10:10:05 +02:00
parent 38eddc1cf0
commit 18353f0639
4 changed files with 47 additions and 14 deletions

View File

@ -0,0 +1,12 @@
function copyToClipboard(str) {
const input = document.createElement("input");
input.value = str;
document.body.appendChild(input);
input.select();
input.setSelectionRange(0, str.length);
document.execCommand("copy");
input.remove();
}