aboutsummaryrefslogtreecommitdiff
path: root/modern/src/login
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-02-24 16:02:48 -0800
committerAnton Tananaev <anton@traccar.org>2024-02-24 16:02:48 -0800
commit8bd7cba6f5ce56bcccda1459cdd953b3add799d6 (patch)
treed133b5e57cee061fd49eeddcec35dc3b38254a6d /modern/src/login
parent3106f6ab617b23d6fb2587c3cde2b684abac2605 (diff)
downloadtrackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.tar.gz
trackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.tar.bz2
trackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.zip
Fix lint and issues
Diffstat (limited to 'modern/src/login')
-rw-r--r--modern/src/login/LoginPage.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/login/LoginPage.jsx b/modern/src/login/LoginPage.jsx
index 6cca2837..62aa4a6b 100644
--- a/modern/src/login/LoginPage.jsx
+++ b/modern/src/login/LoginPage.jsx
@@ -96,7 +96,7 @@ const LoginPage = () => {
const query = `email=${encodeURIComponent(email)}&password=${encodeURIComponent(password)}`;
const response = await fetch('/api/session', {
method: 'POST',
- body: new URLSearchParams(code.length ? query + `&code=${code}` : query),
+ body: new URLSearchParams(code.length ? `${query}&code=${code}` : query),
});
if (response.ok) {
const user = await response.json();