Logging req on undefined req.hostname, added exceptions to qmining auth, login screen autofocus input

This commit is contained in:
MrFry
2020-04-15 19:35:35 +02:00
parent cda0d31827
commit 03751182bf
5 changed files with 7 additions and 3 deletions

View File

@@ -16,6 +16,8 @@ module.exports = function (options) {
hostname = req.hostname.replace('www.', '').split('.')[0] hostname = req.hostname.replace('www.', '').split('.')[0]
} else { } else {
logger.Log('Hostname is undefined!', logger.GetColor('redbg')) logger.Log('Hostname is undefined!', logger.GetColor('redbg'))
console.log(req.body)
console.log(req.query)
} }
// fixme: regexp includes checking // fixme: regexp includes checking

View File

@@ -59,6 +59,8 @@ function GetApp () {
jsonResponse: false, jsonResponse: false,
exceptions: [ exceptions: [
'/thanks', '/thanks',
'/thanks.html',
'/img/thanks.gif',
'/install', '/install',
'/favicon.ico', '/favicon.ico',
'/getVeteranPw', '/getVeteranPw',

View File

@@ -101,7 +101,7 @@
</div> </div>
<div id='form'> <div id='form'>
<div class='inputContainer'> <div class='inputContainer'>
<input type='text' id='pw' name='pw' autocomplete="off"/> <input type='text' id='pw' name='pw' autocomplete="off" autofocus/>
<input type='hidden' id='cid' name='pw' autocomplete="off"/> <input type='hidden' id='cid' name='pw' autocomplete="off"/>
</div> </div>
<div class='ircLinkContainer' > <div class='ircLinkContainer' >