From 8f7bac314729edf8160920d43cd8b9c1b9a82f0a Mon Sep 17 00:00:00 2001 From: 1aerostorm Date: Sat, 16 Dec 2023 02:12:56 +0000 Subject: [PATCH] Fix already_authorized --- app/redux/UserSaga.js | 2 +- config/default.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/redux/UserSaga.js b/app/redux/UserSaga.js index f38df8e..2f5ba40 100644 --- a/app/redux/UserSaga.js +++ b/app/redux/UserSaga.js @@ -326,7 +326,7 @@ function* usernamePasswordLogin2({payload: {username, password, saveLogin, let authorized = false; try { const res = yield authApiLogin(username, null); - if (!res.already_authorized) { + if (res.already_authorized !== username) { console.log('login_challenge', res.login_challenge); const challenge = {token: res.login_challenge}; diff --git a/config/default.json b/config/default.json index 1c0093e..681fe5f 100644 --- a/config/default.json +++ b/config/default.json @@ -46,7 +46,7 @@ }, "notify_service": { "host": "https://devnotify.golos.app", - "host_ws": "ws://devnotify.golos.app/ws" + "host_ws": "wss://devnotify.golos.app/ws" }, "apidex_service": { "host": "https://api-dex.golos.app"