mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Translation system is still fucked up
This commit is contained in:
@@ -27,7 +27,7 @@ async function login(loginUrl, username, password) {
|
|||||||
);
|
);
|
||||||
const status = authResponse[0];
|
const status = authResponse[0];
|
||||||
const data = JSON.parse(authResponse[2]);
|
const data = JSON.parse(authResponse[2]);
|
||||||
const token = data.result.token;
|
const {token} = data.result;
|
||||||
try {
|
try {
|
||||||
if (status === 200) {
|
if (status === 200) {
|
||||||
cache.put(tokenCacheKey, token); // expiration -5 minutes
|
cache.put(tokenCacheKey, token); // expiration -5 minutes
|
||||||
|
|||||||
Reference in New Issue
Block a user