mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-30 09:07:28 +03:00
Merge pull request #1147 from esteemapp/bugfix/sc-login
Fixed sc login issue
This commit is contained in:
commit
cece343298
@ -128,7 +128,7 @@ export const loginWithSC2 = async (code, isPinCodeOpen) => {
|
|||||||
postingKey: '',
|
postingKey: '',
|
||||||
activeKey: '',
|
activeKey: '',
|
||||||
memoKey: '',
|
memoKey: '',
|
||||||
accessToken: scTokens.access_token,
|
accessToken: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isPinCodeOpen) {
|
if (isPinCodeOpen) {
|
||||||
@ -177,7 +177,9 @@ export const setUserDataWithPinCode = async data => {
|
|||||||
get(userData, 'memoKey') ||
|
get(userData, 'memoKey') ||
|
||||||
get(userData, 'postingKey');
|
get(userData, 'postingKey');
|
||||||
|
|
||||||
data.password = decryptKey(publicKey, data.pinCode);
|
if (publicKey) {
|
||||||
|
data.password = decryptKey(publicKey, data.pinCode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const updatedUserData = getUpdatedUserData(userData, data);
|
const updatedUserData = getUpdatedUserData(userData, data);
|
||||||
|
Loading…
Reference in New Issue
Block a user