SMA: allow empty password

pull/132/head
Simon Stürz 2023-05-30 14:01:25 +02:00
parent 67bc283084
commit 51a9fa3825
1 changed files with 2 additions and 1 deletions

View File

@ -256,11 +256,12 @@ void IntegrationPluginSma::confirmPairing(ThingPairingInfo *info, const QString
}
// Init with the default password
QString password = "0000";
QString password;
if (!secret.isEmpty()) {
qCDebug(dcSma()) << "Pairing: Using password" << secret;
password = secret;
} else {
//password = "0000";
qCDebug(dcSma()) << "Pairing: The given password is empty. Using default password" << password;
}