From e9e457f1a8c59588b443fc258ba3eae857283b57 Mon Sep 17 00:00:00 2001 From: 1aerostorm Date: Sat, 16 Dec 2023 01:22:21 +0000 Subject: [PATCH] Fix auth already_authorized --- app/redux/UserSaga.js | 2 +- config/default.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/redux/UserSaga.js b/app/redux/UserSaga.js index 303b7051..870c10b7 100644 --- a/app/redux/UserSaga.js +++ b/app/redux/UserSaga.js @@ -318,7 +318,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 cd6cab3b..6ea5cb57 100644 --- a/config/default.json +++ b/config/default.json @@ -48,7 +48,8 @@ "custom_client": "blogs" }, "notify_service": { - "host": "https://devnotify.golos.app" + "host": "https://devnotify.golos.app", + "host_ws": "wss://devnotify.golos.app/ws" }, "elastic_search": { "url": "https://devsearch.golos.today",