force to use ionic prompt to hide password

This commit is contained in:
Gabriel Bazán 2016-10-11 17:10:00 -03:00
commit 20b2f2d6dc
2 changed files with 5 additions and 4 deletions

View file

@ -118,7 +118,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni
this.showPrompt = function(title, message, opts, cb) { this.showPrompt = function(title, message, opts, cb) {
$log.warn(title + ": " + message); $log.warn(title + ": " + message);
if (isCordova) if (isCordova && !opts.force)
_cordovaPrompt(title, message, opts, cb); _cordovaPrompt(title, message, opts, cb);
else else
_ionicPrompt(title, message, opts, cb); _ionicPrompt(title, message, opts, cb);

View file

@ -821,7 +821,8 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
// An alert dialog // An alert dialog
var askPassword = function(name, title, cb) { var askPassword = function(name, title, cb) {
var opts = { var opts = {
inputType: 'password' inputType: 'password',
force: true
}; };
popupService.showPrompt(title, name, opts, function(res) { popupService.showPrompt(title, name, opts, function(res) {
if (!res) return cb(); if (!res) return cb();