Fix demo auto-login.

This commit is contained in:
Buster Neece 2023-12-07 23:25:31 -06:00
parent 92ff3bbdcf
commit 183e136983
No known key found for this signature in database
1 changed files with 3 additions and 2 deletions

View File

@ -37,8 +37,9 @@ final class SettingsFixture extends AbstractFixture
$settings->setPublicCustomJs(
<<<'JS'
(() => {
window.addEventListener('DOMContentLoaded', () => {
if (document.body.classList.contains('login-content')) {
document.addEventListener('vue-ready', () => {
var form = document.getElementById('login-form');
if (form) {
document.querySelector('input[name="username"]').value = 'demo@azuracast.com';
document.querySelector('input[name="password"]').value = 'demo';
}