Forgot passcode lock option

This commit is contained in:
Mo Bitar
2018-04-29 12:43:29 -05:00
parent abb9521472
commit 36f27301ea
3 changed files with 32 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ class LockScreen {
};
}
controller($scope, passcodeManager) {
controller($scope, passcodeManager, authManager, syncManager) {
'ngInject';
$scope.formData = {};
@@ -23,6 +23,21 @@ class LockScreen {
$scope.onSuccess()();
})
}
$scope.forgotPasscode = function() {
$scope.formData.showRecovery = true;
}
$scope.beginDeleteData = function() {
if(!confirm("Are you sure you want to clear all local data?")) {
return;
}
authManager.signOut();
syncManager.destroyLocalData(function(){
window.location.reload();
})
}
}
}