Hotfix
This commit is contained in:
@@ -8,7 +8,10 @@ export async function isAuthenticated() {
|
||||
return true;
|
||||
}
|
||||
return axios
|
||||
.get(`http://${env.PUBLIC_JEOPARDY_SERVER}/user/username`, { withCredentials: true })
|
||||
.get(
|
||||
`${env.PUBLIC_JEOPARDY_SERVER_PROTOCOL}://${env.PUBLIC_JEOPARDY_SERVER}/user/username`,
|
||||
{ withCredentials: true }
|
||||
)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
UserSvelte.username = res.data;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
async function login() {
|
||||
axios
|
||||
.post(
|
||||
`http://${env.PUBLIC_JEOPARDY_SERVER}/auth/login`,
|
||||
`${env.PUBLIC_JEOPARDY_SERVER_PROTOCOL}://${env.PUBLIC_JEOPARDY_SERVER}/auth/login`,
|
||||
{
|
||||
username: username,
|
||||
password: password
|
||||
|
||||
Reference in New Issue
Block a user