Skip to content

Commit

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

0 comments on commit 8f7bac3

Please sign in to comment.