mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-02 11:15:35 +03:00
Comment changes
This commit is contained in:
parent
1db046f7c5
commit
e5dcfb266f
@ -1,6 +1,7 @@
|
||||
import * as dsteem from 'dsteem';
|
||||
import sha256 from 'crypto-js/sha256';
|
||||
import Config from 'react-native-config';
|
||||
import get from 'lodash/get';
|
||||
|
||||
import { getUser } from './dsteem';
|
||||
import {
|
||||
@ -171,7 +172,10 @@ export const setUserDataWithPinCode = async data => {
|
||||
|
||||
if (!data.password) {
|
||||
const publicKey =
|
||||
userData.masterKey || userData.activeKey || userData.memoKey || userData.postingKey;
|
||||
get(userData, 'masterKey') ||
|
||||
get(userData, 'activeKey') ||
|
||||
get(userData, 'memoKey') ||
|
||||
get(userData, 'postingKey');
|
||||
|
||||
data.password = decryptKey(publicKey, data.pinCode);
|
||||
}
|
||||
@ -202,7 +206,10 @@ export const updatePinCode = data =>
|
||||
userData.authType === AUTH_TYPE.POSTING_KEY
|
||||
) {
|
||||
const publicKey =
|
||||
userData.masterKey || userData.activeKey || userData.memoKey || userData.postingKey;
|
||||
get(userData, 'masterKey') ||
|
||||
get(userData, 'activeKey') ||
|
||||
get(userData, 'memoKey') ||
|
||||
get(userData, 'postingKey');
|
||||
|
||||
data.password = decryptKey(publicKey, data.oldPinCode);
|
||||
} else if (userData.authType === AUTH_TYPE.STEEM_CONNECT) {
|
||||
@ -336,9 +343,3 @@ const isLoggedInUser = username => {
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
// "U2FsdGVkX19mj+Gzu0cINSiOFf8E1dvxB2jD4PX1y6ZHBRdlkXOlI2ykYm0iaQ1QPD1JY7TiczdTjAioEpuWh8YhGh00XZzL6kwDOiuHefg="
|
||||
// "U2FsdGVkX19hclmluBCenB+n0yB7rdlSztiyh41AqaHQB9VmAnRngOhHE/yqFp5fzP9OiiduJwkFv/WtMjFqOjjtnBHGlkrnlusoibxuDy0="
|
||||
|
||||
// "U2FsdGVkX1+f/My5yx5Ys2gFIe+S/scGYA6M2SyoPEv+UyDNUbVX1IA3dmP8EHy8/qwCz1HZ0A5Y6KkizAisR0qxOlyv1bRfubbIGlAjBmY="
|
||||
// "U2FsdGVkX19pNwJxV+Wy9HNYqD1mFv4PNbkDYyIgTgaZVAJW6ayxxhEOwSYayWWALsr6rQkkTPUz0LgLj2QeAm2hIeIHntHx2kQ2aK8akU4="
|
||||
|
Loading…
Reference in New Issue
Block a user