Merge pull request #384 from gabrielbazan7/fix/passwordPrompt
force to use ionic prompt to hide password
This commit is contained in:
commit
a64294f0d9
2 changed files with 5 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue