mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
Treat empty secrets as no secret
This commit is contained in:
parent
f0102c1e55
commit
6313ecb7d4
1 changed files with 4 additions and 0 deletions
|
@ -661,6 +661,10 @@ Cache::secret(const std::string &name)
|
|||
"Restoring secret '{}' failed: {}", name, job.errorString().toStdString());
|
||||
return std::nullopt;
|
||||
}
|
||||
if (secret.isEmpty()) {
|
||||
nhlog::db()->debug("Restored empty secret '{}'.", name);
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
return secret.toStdString();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue