Explorar o código

Cannot create an account with sqlite

https://github.com/FreshRSS/FreshRSS/issues/770
Alexandre Alapetite %!s(int64=11) %!d(string=hai) anos
pai
achega
f7a502b06e
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      app/install.php

+ 7 - 0
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>