diff --git a/src/app/redux/UserSaga.js b/src/app/redux/UserSaga.js index ffbfcc8f5cac0f0c5bccb03c563398a345fbb4ea..4ba10ffd3fb6ff8d713ceaf6a6e7a7df375979c2 100644 --- a/src/app/redux/UserSaga.js +++ b/src/app/redux/UserSaga.js @@ -724,10 +724,10 @@ function* saveLogin_localStorage() { const postingPubkey = posting_private ? posting_private.toPublicKey().toString() : 'none'; try { account.getIn(['active', 'key_auths']).forEach((_auth) => { - if (_auth.get(0) === postingPubkey) throw 'Login will not be saved, posting key is the same as active key'; + if (_auth.get(0) === postingPubkey && !$STM_Config.dangerously_allow_login_with_ober_key) throw 'Login will not be saved, posting key is the same as active key'; }); account.getIn(['owner', 'key_auths']).forEach((_auth) => { - if (_auth.get(0) === postingPubkey) throw 'Login will not be saved, posting key is the same as owner key'; + if (_auth.get(0) === postingPubkey && !$STM_Config.dangerously_allow_login_with_ober_key) throw 'Login will not be saved, posting key is the same as owner key'; }); } catch (e) { console.error('login_auth_err', e);