Prefix base64 image data
This commit is contained in:
@@ -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 });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user