From eafb53bc4ab8332481feb240e7506f9009520ac3 Mon Sep 17 00:00:00 2001 From: krugarrr Date: Wed, 17 Jan 2024 18:38:14 +0300 Subject: [PATCH] fix --- auth-server/static/login.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth-server/static/login.html b/auth-server/static/login.html index 54e3cc8..062fe83 100644 --- a/auth-server/static/login.html +++ b/auth-server/static/login.html @@ -60,11 +60,11 @@ const userLogin = document.querySelector('input[name="user_login"]').value; const clientSecret = document.querySelector('input[name="client_secret"]').value; const backRedirectionAddress = new URLSearchParams(window.location.search).get('back_redirection_address'); - fetch('http://auth-server/login?user_login=${userLogin}&client_secret=${clientSecret}') + fetch(`http://auth-server/login?user_login=${userLogin}&client_secret=${clientSecret}`) .then(response => response.json()) .then(data => { const accessToken = data.access_token; - window.location.href = '${backRedirectionAddress}?access_token=${accessToken}&user_login=${userLogin}'; + window.location.href = `${backRedirectionAddress}?access_token=${accessToken}&user_login=${userLogin}`; }) .catch(error => console.error(error)); });