Fixed sc login issue

This commit is contained in:
Mustafa Buyukcelebi 2019-09-09 16:58:58 +03:00
parent 78f54da152
commit 0e8aedc59b

View File

@ -128,7 +128,7 @@ export const loginWithSC2 = async (code, isPinCodeOpen) => {
postingKey: '',
activeKey: '',
memoKey: '',
accessToken: scTokens.access_token,
accessToken: '',
};
if (isPinCodeOpen) {
@ -177,7 +177,9 @@ export const setUserDataWithPinCode = async data => {
get(userData, 'memoKey') ||
get(userData, 'postingKey');
data.password = decryptKey(publicKey, data.pinCode);
if (publicKey) {
data.password = decryptKey(publicKey, data.pinCode);
}
}
const updatedUserData = getUpdatedUserData(userData, data);