Browse Source

Enter password twice for lock

Fixes #136
pull/223/head
Ramiro Saenz 9 years ago
parent
commit
3d77895119
  1. 15
      app/view/main/MainController.js

15
app/view/main/MainController.js

@ -756,6 +756,18 @@ Ext.define('Rambox.view.main.MainController', {
var msgbox = Ext.Msg.prompt('Lock Rambox', 'Enter a temporal password to unlock it later', function(btnId, text) { var msgbox = Ext.Msg.prompt('Lock Rambox', 'Enter a temporal password to unlock it later', function(btnId, text) {
if ( btnId === 'ok' ) { if ( btnId === 'ok' ) {
var msgbox2 = Ext.Msg.prompt('Lock Rambox', 'Repeat the temporal password', function(btnId, text2) {
if ( btnId === 'ok' ) {
if ( text !== text2 ) {
Ext.Msg.show({
title: 'Warning'
,message: 'Passwords are not the same. Please try again...'
,icon: Ext.Msg.WARNING
,buttons: Ext.Msg.OK
,fn: me.lockRambox
});
return false;
}
// Google Analytics Event // Google Analytics Event
ga_storage._trackEvent('Usability', 'locked'); ga_storage._trackEvent('Usability', 'locked');
@ -817,6 +829,9 @@ Ext.define('Rambox.view.main.MainController', {
}).show(); }).show();
} }
}); });
msgbox2.textField.inputEl.dom.type = 'password';
}
});
msgbox.textField.inputEl.dom.type = 'password'; msgbox.textField.inputEl.dom.type = 'password';
} }

Loading…
Cancel
Save