This commit is contained in:
Emile Nijssen 2021-05-23 12:04:43 +02:00
parent 9d355f67d8
commit 9c34761578
3 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,7 @@
"publicKey": "563oiA0IuQqt8JPEXHGINT4mHYKzlLx9Ol2gcV1vKCk=", "publicKey": "563oiA0IuQqt8JPEXHGINT4mHYKzlLx9Ol2gcV1vKCk=",
"preSharedKey": "Q6xGB4og5Sj6M0MsHzkD16VsniT3FCqOnGmiLLilsU8=", "preSharedKey": "Q6xGB4og5Sj6M0MsHzkD16VsniT3FCqOnGmiLLilsU8=",
"createdAt": "2021-05-22T21:41:49.876Z", "createdAt": "2021-05-22T21:41:49.876Z",
"updatedAt": "2021-05-22T21:41:49.876Z", "updatedAt": "2021-05-23T10:04:29.051Z",
"enabled": true "enabled": true
} }
} }

View File

@ -25,6 +25,9 @@ module.exports = class Util {
error = new Error(error); error = new Error(error);
} }
// eslint-disable-next-line no-console
console.error(error);
return res return res
.status(error.statusCode || 500) .status(error.statusCode || 500)
.json({ .json({

View File

@ -129,6 +129,7 @@ new Vue({
this.api.getSession() this.api.getSession()
.then(session => { .then(session => {
this.authenticated = session.authenticated; this.authenticated = session.authenticated;
this.requiresPassword = session.requiresPassword;
this.refresh().catch(err => { this.refresh().catch(err => {
alert(err.message || err.toString()); alert(err.message || err.toString());
}); });