From e043795a040b8666a6ad253bb6cd37a5d647bbd5 Mon Sep 17 00:00:00 2001 From: Bennett Date: Tue, 3 Mar 2020 17:53:09 +0100 Subject: Add support for unlocking with Touch ID (#423) * Enhance installation guide in README * Add TouchID unlock for Ferdi Lock * Remove commit 8861014 as it is not related to this feature This reverts commit 88610144b942739772286ec3073b328e829a8b39. * Rename TouchID to "Touch ID" * Improve Touch ID prompt text * Improve unlocking with Touch ID * Fix lint * Add separator after lock-related menu entry Co-authored-by: Amine --- src/containers/auth/LockedScreen.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/containers/auth/LockedScreen.js') diff --git a/src/containers/auth/LockedScreen.js b/src/containers/auth/LockedScreen.js index 671f2ccaf..aced64a98 100644 --- a/src/containers/auth/LockedScreen.js +++ b/src/containers/auth/LockedScreen.js @@ -19,6 +19,7 @@ export default @inject('stores', 'actions') @observer class LockedScreen extends super(props); this.onSubmit = this.onSubmit.bind(this); + this.unlock = this.unlock.bind(this); } onSubmit(values) { @@ -45,11 +46,24 @@ export default @inject('stores', 'actions') @observer class LockedScreen extends } } + unlock() { + this.props.actions.settings.update({ + type: 'app', + data: { + locked: false, + }, + }); + } + render() { const { stores, error } = this.props; + const { useTouchIdToUnlock } = this.props.stores.settings.all.app; + return ( -- cgit v1.2.3-54-g00ecf