2 * Copyright (C) 2014-2016 Canonical Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18import Lomiri.Components 1.3
19import Lomiri.SystemSettings.SecurityPrivacy 1.0
20import ".." as LocalComponents
21import "../../Components"
24 * See the main passwd-type page for an explanation of why we don't actually
25 * directly set the password here.
29 id: passcodeConfirmPage
30 objectName: "passcodeConfirmPage"
32 backButtonText: i18n.tr("Cancel")
34 // If we are entering this page, clear any saved password and get focus
35 onEnabledChanged: if (enabled) lockscreen.clear(false)
43 infoText: i18n.tr("Confirm passcode")
45 errorText: i18n.tr("Incorrect passcode.") + "\n" + i18n.ctr("Enter the passcode again", "Please re-enter.")
47 foregroundColor: textColor
49 showEmergencyCallButton: false
50 showCancelButton: false
56 if (passphrase === root.password) {
65 interval: LomiriAnimation.SnapDuration
66 onTriggered: pageStack.next()