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)
|
@pyqtSlot(str, result=bool)
|
||||||
def verifyPassword(self, password):
|
def verifyPassword(self, password):
|
||||||
|
if not self.wallet.has_password():
|
||||||
|
return not bool(password)
|
||||||
try:
|
try:
|
||||||
self.wallet.check_password(password)
|
self.wallet.check_password(password)
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user