mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2024-12-23 01:29:24 +08:00
wip
This commit is contained in:
parent
9d355f67d8
commit
9c34761578
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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({
|
||||
|
@ -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());
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user