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 cfe7972
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit cfe7972

Please sign in to comment.