1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed numeric password requirement check.

This commit is contained in:
Ylian Saint-Hilaire 2020-05-01 23:53:32 -07:00
parent d5ae0e10eb
commit 1c4e8ab607
7 changed files with 107 additions and 111 deletions

View file

@ -4746,7 +4746,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
// Return the correct render page given mobile, minify and override path.
function getRenderPage(pagename, req, domain) {
var mobile = isMobileBrowser(req), minify = obj.args.minify && !req.query.nominify, p;
var mobile = isMobileBrowser(req), minify = (domain.minify == true), p;
if (req.query.minify == '1') { minify = true; } else if (req.query.minify == '0') { minify = false; }
if (mobile) {
if ((domain != null) && (domain.webviewspath != null)) { // If the domain has a web views path, use that first
if (minify) {
@ -4798,7 +4799,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
// Return the correct render page arguments.
function getRenderArgs(xargs, domain) {
xargs.min = obj.args.minify?'-min':'';
xargs.min = domain.minify?'-min':'';
xargs.titlehtml = domain.titlehtml;
xargs.title = (domain.title != null) ? domain.title : 'MeshCentral';
if ((domain.titlepicture == null) && (domain.titlehtml == null)) {