mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 22:55:52 -05:00
Fixed TouchID on mobile, 404 page when using loginkey.
This commit is contained in:
parent
4dec0fae16
commit
df79a44e95
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.4.9-j",
|
"version": "0.4.9-l",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Management",
|
"Remote Management",
|
||||||
"Intel AMT",
|
"Intel AMT",
|
||||||
|
@ -338,7 +338,7 @@
|
|||||||
publicKeyCredentialRequestOptions = { challenge: hardwareKeyChallenge.challenge, allowCredentials: [], timeout: hardwareKeyChallenge.timeout }
|
publicKeyCredentialRequestOptions = { challenge: hardwareKeyChallenge.challenge, allowCredentials: [], timeout: hardwareKeyChallenge.timeout }
|
||||||
for (var i = 0; i < hardwareKeyChallenge.keyIds.length; i++) {
|
for (var i = 0; i < hardwareKeyChallenge.keyIds.length; i++) {
|
||||||
publicKeyCredentialRequestOptions.allowCredentials.push(
|
publicKeyCredentialRequestOptions.allowCredentials.push(
|
||||||
{ id: Uint8Array.from(atob(hardwareKeyChallenge.keyIds[i]), function (c) { return c.charCodeAt(0) }), type: 'public-key', transports: ['usb', 'ble', 'nfc'], }
|
{ id: Uint8Array.from(atob(hardwareKeyChallenge.keyIds[i]), function (c) { return c.charCodeAt(0) }), type: 'public-key', transports: ['usb', 'ble', 'nfc', 'internal'], }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3650,6 +3650,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
|||||||
obj.app.use(function (req, res, next) {
|
obj.app.use(function (req, res, next) {
|
||||||
parent.debug('web', '404 Error ' + req.url);
|
parent.debug('web', '404 Error ' + req.url);
|
||||||
var domain = getDomain(req);
|
var domain = getDomain(req);
|
||||||
|
if ((domain == null) || (domain.auth == 'sspi')) { res.sendStatus(404); return; }
|
||||||
|
if ((domain.loginkey != null) && (domain.loginkey.indexOf(req.query.key) == -1)) { res.sendStatus(404); return; } // Check 3FA URL key
|
||||||
res.status(404).render(getRenderPage('error404', req), getRenderArgs({}, domain));
|
res.status(404).render(getRenderPage('error404', req), getRenderArgs({}, domain));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user