aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index 65d42ffb..777d2621 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -98,7 +98,7 @@ export const info = (m) => {
export const login = async (user, cookies) => {
let maxAge = 30 * 24 * 60 * 60;
let { token } = await post('/login', user);
- if (!token) throw new Error("Login failed");
+ if (!token) throw new Error('Login failed');
let expires = new Date();
expires.setSeconds(expires.getSeconds() + maxAge);