qml: handle no wallet password for authed info
This commit is contained in:
@@ -668,6 +668,8 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
|
||||
|
||||
@pyqtSlot(str, result=bool)
|
||||
def verifyPassword(self, password):
|
||||
if not self.wallet.has_password():
|
||||
return not bool(password)
|
||||
try:
|
||||
self.wallet.check_password(password)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user