Skip to content

Commit

Permalink
Fix auth already_authorized
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed Dec 16, 2023
1 parent aa7bc54 commit e9e457f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/redux/UserSaga.js
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
3 changes: 2 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e9e457f

Please sign in to comment.