Merge pull request #384 from gabrielbazan7/fix/passwordPrompt

force to use ionic prompt to hide password
This commit is contained in:
Matias Alejo Garcia 2016-10-12 11:51:22 -03:00 committed by GitHub
commit a64294f0d9
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) {
$log.warn(title + ": " + message);
if (isCordova)
if (isCordova && !opts.forceHTMLPrompt)
_cordovaPrompt(title, message, opts, cb);
else
_ionicPrompt(title, message, opts, cb);

View file

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