Fix for logging in on site and with script

This commit is contained in:
MrFry 2020-04-09 12:33:29 +02:00
parent a6d260f6af
commit fa4b29efe6
6 changed files with 26 additions and 9 deletions
modules/qmining

View file

@ -178,7 +178,7 @@ function GetApp () {
app.get('/getVeteranPw', function (req, res) {
res.render('veteranPw', {
cid: req.query.cid
cid: req.query.cid || ''
})
logger.LogReq(req)
})

View file

@ -70,12 +70,12 @@
Frylabs
</div>
<div id='text' class='text'>
Másold be ide régi kliens ID-d, és az alapján jelszót ad. Ezt csak egyszer teheted meg, a
Másold be ide régi kliens ID-d, és az alapján jelszót kapsz. Ezt csak egyszer teheted meg, a
kapott jelszót tuti helyre írd le!
</div>
<div id='form'>
<div class='inputContainer'>
<input type='text' id='cid' name='pw' autocomplete="off"/>
<input type='text' id='cid' name='pw' value=<%= cid %> autocomplete="off"/>
</div>
<input type='hidden' name='redirect' value='asd' autocomplete="off"/>
<button id='sendButton' onclick="GetVeteranPW(this)">Submit</button>