This commit is contained in:
Andras Bacsai
2023-06-15 09:24:24 +02:00
parent f79b3841c7
commit aa3dbdfaa2
2 changed files with 12 additions and 2 deletions

View File

@@ -67,6 +67,17 @@
else console.log('saved');
})
</script>
@else
<script>
function changePasswordFieldType(id) {
const input = document.getElementById(id);
if (input.type === 'password') {
input.type = 'text';
} else {
input.type = 'password';
}
}
</script>
@endauth
</body>