|
|
@ -33,7 +33,8 @@ from PyQt5.QtWidgets import QLineEdit, QLabel, QGridLayout, QVBoxLayout, QCheckB |
|
|
|
from electrum.i18n import _ |
|
|
|
from electrum.plugin import run_hook |
|
|
|
|
|
|
|
from .util import icon_path, WindowModalDialog, OkButton, CancelButton, Buttons |
|
|
|
from .util import (icon_path, WindowModalDialog, OkButton, CancelButton, Buttons, |
|
|
|
PasswordLineEdit) |
|
|
|
|
|
|
|
|
|
|
|
def check_password_strength(password): |
|
|
@ -63,12 +64,9 @@ class PasswordLayout(object): |
|
|
|
def __init__(self, msg, kind, OK_button, wallet=None, force_disable_encrypt_cb=False): |
|
|
|
self.wallet = wallet |
|
|
|
|
|
|
|
self.pw = QLineEdit() |
|
|
|
self.pw.setEchoMode(2) |
|
|
|
self.new_pw = QLineEdit() |
|
|
|
self.new_pw.setEchoMode(2) |
|
|
|
self.conf_pw = QLineEdit() |
|
|
|
self.conf_pw.setEchoMode(2) |
|
|
|
self.pw = PasswordLineEdit() |
|
|
|
self.new_pw = PasswordLineEdit() |
|
|
|
self.conf_pw = PasswordLineEdit() |
|
|
|
self.kind = kind |
|
|
|
self.OK_button = OK_button |
|
|
|
|
|
|
@ -290,8 +288,7 @@ class PasswordDialog(WindowModalDialog): |
|
|
|
def __init__(self, parent=None, msg=None): |
|
|
|
msg = msg or _('Please enter your password') |
|
|
|
WindowModalDialog.__init__(self, parent, _("Enter Password")) |
|
|
|
self.pw = pw = QLineEdit() |
|
|
|
pw.setEchoMode(2) |
|
|
|
self.pw = pw = PasswordLineEdit() |
|
|
|
vbox = QVBoxLayout() |
|
|
|
vbox.addWidget(QLabel(msg)) |
|
|
|
grid = QGridLayout() |
|
|
|