diff --git a/src/proxyauth.js b/src/proxyauth.js index 442246e6e..ad7c32744 100644 --- a/src/proxyauth.js +++ b/src/proxyauth.js @@ -56,7 +56,7 @@ function loginPage(req, res, next) { const title = app.label || app.manifest.title; apps.getIconPath(app, {}, function (error, iconPath) { - const icon = safe.fs.readFileSync(iconPath || '', 'base64'); + const icon = 'data:image/png;base64,' + safe.fs.readFileSync(iconPath || '', 'base64'); return res.render(path.join(paths.DASHBOARD_DIR, 'templates/proxyauth-login.ejs'), { title, icon }); });