From e452dc0fb1b5421b49eaf270445a1acd9a14407c Mon Sep 17 00:00:00 2001 From: Bill Church Date: Wed, 21 Nov 2018 11:53:00 -0500 Subject: [PATCH 1/3] Update util.js fixes 118, thanks @smilesm2 --- app/server/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/util.js b/app/server/util.js index 13a258d..a3ea940 100644 --- a/app/server/util.js +++ b/app/server/util.js @@ -9,7 +9,7 @@ var Auth = require('basic-auth') exports.basicAuth = function basicAuth (req, res, next) { var myAuth = Auth(req) - if (myAuth) { + if (myAuth && myAuth.pass !== '') { req.session.username = myAuth.name req.session.userpassword = myAuth.pass debug('myAuth.name: ' + myAuth.name.yellow.bold.underline + From 04c28468282880a1f70560d576ef2194f270c07c Mon Sep 17 00:00:00 2001 From: Bill Church Date: Wed, 21 Nov 2018 11:55:32 -0500 Subject: [PATCH 2/3] Update ChangeLog.md --- ChangeLog.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index 19eb6ca..94d6601 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,4 +1,8 @@ # Change Log +## [0.2.8] TBD +### Changes +- Fixes issue if no password is entered, browser must be closed and restart to attempt to re-auth. See issue [#118](../../issues/118). Thanks @smilesm2 for the idea. + ## [0.2.7] 2018-11-11 ### Changes - `config.reauth` was not respected if initial auth presented was incorrect, regardless of `reauth` setting in `config.json` reauth would always be attempted. fixes [#117](../../issues/117) From 29fabbb6316eef8ff323d9548703c2ce979cbb91 Mon Sep 17 00:00:00 2001 From: Bill Church Date: Wed, 21 Nov 2018 11:55:52 -0500 Subject: [PATCH 3/3] Update package.json --- app/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/package.json b/app/package.json index a06af89..7732652 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "webssh2", - "version": "0.2.7", + "version": "0.2.8", "ignore": [ ".gitignore" ],