Skip to content

A free, self-hostable news aggregator…

Cannot create an account with sqlite

Alexandre Alapetitef7a502b06e7b
diff --git a/app/install.php b/app/install.php
index 177173fdb..5f43b6415 100644
--- a/app/install.php
+++ b/app/install.php
@@ -741,6 +741,13 @@ function printStep3() {
<script>
function mySqlShowHide() {
document.getElementById('mysql').style.display = document.getElementById('type').value === 'mysql' ? 'block' : 'none';
+ if (document.getElementById('type').value !== 'mysql') {
+ document.getElementById('host').value = '';
+ document.getElementById('user').value = '';
+ document.getElementById('pass').value = '';
+ document.getElementById('base').value = '';
+ document.getElementById('prefix').value = '';
+ }
}
mySqlShowHide();
</script>