From 9f0698ec7047746eb229e98c0c18cabc6ae0f618 Mon Sep 17 00:00:00 2001 From: Kadir Sekha Date: Thu, 1 Feb 2018 17:59:10 -0400 Subject: [PATCH] remove spending password from create personal or shared --- src/js/controllers/create.js | 23 ------------ www/views/tab-create-personal.html | 56 +----------------------------- www/views/tab-create-shared.html | 55 +---------------------------- 3 files changed, 2 insertions(+), 132 deletions(-) diff --git a/src/js/controllers/create.js b/src/js/controllers/create.js index f10e1ae2e..43b20ef7c 100644 --- a/src/js/controllers/create.js +++ b/src/js/controllers/create.js @@ -47,36 +47,13 @@ angular.module('copayApp.controllers').controller('createController', $scope.showAdvChange = function() { $scope.showAdv = !$scope.showAdv; - $scope.encrypt = null; $scope.resizeView(); }; - $scope.checkPassword = function(pw1, pw2) { - if (pw1 && pw1.length > 0) { - if (pw2 && pw2.length > 0) { - if (pw1 == pw2) $scope.result = 'correct'; - else { - $scope.formData.passwordSaved = null; - $scope.result = 'incorrect'; - } - } else - $scope.result = null; - } else - $scope.result = null; - }; - $scope.resizeView = function() { $timeout(function() { $ionicScrollDelegate.resize(); }, 10); - resetPasswordFields(); - }; - - function resetPasswordFields() { - $scope.formData.passphrase = $scope.formData.createPassphrase = $scope.formData.passwordSaved = $scope.formData.repeatPassword = $scope.result = null; - $timeout(function() { - $scope.$apply(); - }); }; function updateRCSelect(n) { diff --git a/www/views/tab-create-personal.html b/www/views/tab-create-personal.html index b66bf6e72..4fd4dec4a 100644 --- a/www/views/tab-create-personal.html +++ b/www/views/tab-create-personal.html @@ -54,59 +54,6 @@ ng-model="formData.privateKey"> -
- - Add a password - -
- Add an optional password to secure the recovery phrase - The recovery phrase could require a password to be imported -
-
- -
- - - -
-
- - - -
- -
- This password cannot be recovered. If the password is lost, there is no way you could recover your funds. -
- - - I have written it down - - -
- - Add a password - -
- Add an optional password to secure the recovery phrase - The recovery phrase could require a password to be imported -
-
- -
- - - -
-
- - - -
- -
- This password cannot be recovered. If the password is lost, there is no way you could recover your funds. -
- - - I have written it down -