mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
db_password can be empty
This commit is contained in:
@@ -429,7 +429,7 @@ if (!file_exists('.lock')) {
|
||||
<input type="text" id="db_username" placeholder="waveloguser" class="form-control" name="db_username" />
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="db_password" class="form-label required"><?= __("Password"); ?></label><i id="callbook_tooltip" data-bs-toggle="tooltip" data-bs-placement="top" title="Directory Hint" class="fas fa-question-circle text-muted ms-2" data-bs-custom-class="custom-tooltip" data-bs-html="true" data-bs-title="<?= __("Password of the Database User"); ?>"></i>
|
||||
<label for="db_password" class="form-label"><?= __("Password"); ?></label><i id="callbook_tooltip" data-bs-toggle="tooltip" data-bs-placement="top" title="Directory Hint" class="fas fa-question-circle text-muted ms-2" data-bs-custom-class="custom-tooltip" data-bs-html="true" data-bs-title="<?= __("Password of the Database User"); ?>"></i>
|
||||
<input type="password" id="db_password" placeholder="supersecretpassword" class="form-control" name="db_password" />
|
||||
</div>
|
||||
<div class="col">
|
||||
@@ -1161,7 +1161,7 @@ if (!file_exists('.lock')) {
|
||||
var db_password = $('#db_password').val();
|
||||
var db_name = $('#db_name').val();
|
||||
|
||||
if (db_hostname === '' || db_username === '' || db_password === '' || db_name === '') {
|
||||
if (db_hostname === '' || db_username === '' || db_name === '') {
|
||||
$('#db_connection_testresult').addClass('alert-danger');
|
||||
$('#db_connection_testresult').html('<?= __("Error: All fields are required."); ?>');
|
||||
return;
|
||||
@@ -1539,9 +1539,6 @@ if (!file_exists('.lock')) {
|
||||
if ($('#db_username').val() === '') {
|
||||
checklist_database = false;
|
||||
}
|
||||
if ($('#db_password').val() === '') {
|
||||
checklist_database = false;
|
||||
}
|
||||
|
||||
var checklist_icon = $('#checklist_database');
|
||||
checklist_icon.removeClass('fa-check-circle fa-times-circle fa-exclamation-triangle');
|
||||
|
||||
Reference in New Issue
Block a user