forked from mirrors/amnezia-wg-easy
wip
This commit is contained in:
parent
9d355f67d8
commit
9c34761578
3 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue