From 7a0453ebd728092f05ee65abc1a7c3efdda168d1 Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Wed, 27 Nov 2019 22:02:18 +0700 Subject: #232 Remove default lock password behavior, allow empty password --- src/containers/auth/LockedScreen.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/containers/auth/LockedScreen.js') diff --git a/src/containers/auth/LockedScreen.js b/src/containers/auth/LockedScreen.js index 94285fb06..671f2ccaf 100644 --- a/src/containers/auth/LockedScreen.js +++ b/src/containers/auth/LockedScreen.js @@ -3,7 +3,6 @@ import PropTypes from 'prop-types'; import { inject, observer } from 'mobx-react'; import Locked from '../../components/auth/Locked'; import SettingsStore from '../../stores/SettingsStore'; -import { DEFAULT_LOCK_PASSWORD } from '../../config'; import { globalError as globalErrorPropType } from '../../prop-types'; @@ -27,9 +26,7 @@ export default @inject('stores', 'actions') @observer class LockedScreen extends let correctPassword = this.props.stores.settings.all.app.lockedPassword; if (!correctPassword) { - // Lock feature was enabled but no password was set - // Use default lock password so user can exit - correctPassword = DEFAULT_LOCK_PASSWORD; + correctPassword = ''; } if (String(password) === String(correctPassword)) { -- cgit v1.2.3-54-g00ecf