mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 11:51:52 +03:00
added support encUnlockPin in biometric process
This commit is contained in:
parent
30884383c2
commit
8224e121df
@ -75,6 +75,7 @@ class PinCodeContainer extends Component {
|
||||
});
|
||||
}
|
||||
|
||||
this._processBiometric();
|
||||
}
|
||||
|
||||
_processBiometric = async () => {
|
||||
@ -83,6 +84,7 @@ class PinCodeContainer extends Component {
|
||||
intl,
|
||||
pinCodeParams: { isReset },
|
||||
applicationPinCode,
|
||||
encUnlockPin,
|
||||
isBiometricEnabled,
|
||||
} = this.props;
|
||||
|
||||
@ -100,7 +102,8 @@ class PinCodeContainer extends Component {
|
||||
|
||||
//code gets here means biometeric succeeded
|
||||
if (this.screenRef) {
|
||||
const verifiedPin = decryptKey(applicationPinCode, Config.PIN_KEY, this._onDecryptFail);
|
||||
const encPin = encUnlockPin || applicationPinCode;
|
||||
const verifiedPin = decryptKey(encPin, Config.PIN_KEY, this._onDecryptFail);
|
||||
this.screenRef.setPinThroughBiometric(verifiedPin);
|
||||
}
|
||||
} catch (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user