mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-30 00:52:42 +03:00
revert TODO comments
This commit is contained in:
parent
0b10062a98
commit
d2cb3f6c7e
@ -135,7 +135,7 @@ class PinCodeContainer extends Component {
|
|||||||
//this function updates realm with appropriate master key required for encyrption
|
//this function updates realm with appropriate master key required for encyrption
|
||||||
//this function is important: must run while chaning pin
|
//this function is important: must run while chaning pin
|
||||||
//and even logging in with existing pin code
|
//and even logging in with existing pin code
|
||||||
//TODO: make sure this routine is not called
|
|
||||||
_updatePinCodeRealm = async (pinData) => {
|
_updatePinCodeRealm = async (pinData) => {
|
||||||
try {
|
try {
|
||||||
const { currentAccount, dispatch } = this.props;
|
const { currentAccount, dispatch } = this.props;
|
||||||
@ -259,7 +259,6 @@ class PinCodeContainer extends Component {
|
|||||||
} = this.props;
|
} = this.props;
|
||||||
const { oldPinCode } = this.state;
|
const { oldPinCode } = this.state;
|
||||||
|
|
||||||
//TOOD: make sure user is set with defualt pin here.
|
|
||||||
const pinData = {
|
const pinData = {
|
||||||
pinCode: pin,
|
pinCode: pin,
|
||||||
password: currentAccount ? currentAccount.password : '',
|
password: currentAccount ? currentAccount.password : '',
|
||||||
@ -395,7 +394,6 @@ class PinCodeContainer extends Component {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
//TODO: make sure pinCode is rather saved as different redux state, encryptedUnlockPin
|
|
||||||
_savePinCode = (pin) => {
|
_savePinCode = (pin) => {
|
||||||
const { dispatch } = this.props;
|
const { dispatch } = this.props;
|
||||||
const encryptedPin = encryptKey(pin, Config.PIN_KEY);
|
const encryptedPin = encryptKey(pin, Config.PIN_KEY);
|
||||||
|
Loading…
Reference in New Issue
Block a user