diff --git a/config/wg0.json b/config/wg0.json index cd50c6b..8cce147 100644 --- a/config/wg0.json +++ b/config/wg0.json @@ -24,7 +24,7 @@ "publicKey": "563oiA0IuQqt8JPEXHGINT4mHYKzlLx9Ol2gcV1vKCk=", "preSharedKey": "Q6xGB4og5Sj6M0MsHzkD16VsniT3FCqOnGmiLLilsU8=", "createdAt": "2021-05-22T21:41:49.876Z", - "updatedAt": "2021-05-22T21:41:49.876Z", + "updatedAt": "2021-05-23T10:04:29.051Z", "enabled": true } } diff --git a/src/lib/Util.js b/src/lib/Util.js index 3bfea75..a1c1f5f 100644 --- a/src/lib/Util.js +++ b/src/lib/Util.js @@ -25,6 +25,9 @@ module.exports = class Util { error = new Error(error); } + // eslint-disable-next-line no-console + console.error(error); + return res .status(error.statusCode || 500) .json({ diff --git a/src/www/js/app.js b/src/www/js/app.js index 9f8abec..fb2cd71 100644 --- a/src/www/js/app.js +++ b/src/www/js/app.js @@ -129,6 +129,7 @@ new Vue({ this.api.getSession() .then(session => { this.authenticated = session.authenticated; + this.requiresPassword = session.requiresPassword; this.refresh().catch(err => { alert(err.message || err.toString()); });