From 9a93be2752ec81ed1f634adbb63aef2d1c5272de Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 19 May 2021 11:28:09 +0530 Subject: Applied linter fixes. --- app/Controllers/Http/UserController.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'app/Controllers/Http/UserController.js') diff --git a/app/Controllers/Http/UserController.js b/app/Controllers/Http/UserController.js index e19e15e..0d768a9 100644 --- a/app/Controllers/Http/UserController.js +++ b/app/Controllers/Http/UserController.js @@ -177,6 +177,7 @@ class UserController { ...request.all(), }; + // eslint-disable-next-line no-param-reassign auth.user.settings = JSON.stringify(newSettings); await auth.user.save(); @@ -249,7 +250,7 @@ class UserController { email, password: hashedPassword, username: 'Franz', - lastname: 'Franz' + lastname: 'Franz', }); return response.send('Your account has been created but due to this server\'s configuration, we could not import your Franz account data.\n\nIf you are the server owner, please set CONNECT_WITH_FRANZ to true to enable account imports.'); @@ -263,7 +264,7 @@ class UserController { try { const basicToken = btoa(`${email}:${hashedPassword}`); const loginBody = { - isZendeskLogin: false + isZendeskLogin: false, }; const rawResponse = await fetch(`${base}auth/login`, { @@ -273,8 +274,8 @@ class UserController { Authorization: `Basic ${basicToken}`, 'User-Agent': userAgent, 'Content-Type': 'application/json', - 'accept': '*/*', - 'x-franz-source': 'Web' + accept: '*/*', + 'x-franz-source': 'Web', }, }); const content = await rawResponse.json(); @@ -312,7 +313,7 @@ class UserController { email: userInf.email, password: hashedPassword, username: userInf.firstname, - lastname: userInf.lastname + lastname: userInf.lastname, }); } catch (e) { const errorMessage = `Could not create your user in our system.\nError: ${e}`; -- cgit v1.2.3-70-g09d2