aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowServerSlotFunction.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-08-23 10:24:23 +0000
committerSaturneric <[email protected]>2021-08-23 10:24:23 +0000
commit420db34b0b9fa3af987342d504eb61767eb31d4d (patch)
tree22bd1deb310f69e6e30d7a0e499c85b254cde69d /src/ui/main_window/MainWindowServerSlotFunction.cpp
parentFix some problems; Fix memory leaks that have been discovered (diff)
downloadGpgFrontend-420db34b0b9fa3af987342d504eb61767eb31d4d.tar.gz
GpgFrontend-420db34b0b9fa3af987342d504eb61767eb31d4d.zip
Reduced issues.
Diffstat (limited to 'src/ui/main_window/MainWindowServerSlotFunction.cpp')
-rw-r--r--src/ui/main_window/MainWindowServerSlotFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/main_window/MainWindowServerSlotFunction.cpp b/src/ui/main_window/MainWindowServerSlotFunction.cpp
index 13dc6af3..3a7e9f71 100644
--- a/src/ui/main_window/MainWindowServerSlotFunction.cpp
+++ b/src/ui/main_window/MainWindowServerSlotFunction.cpp
@@ -120,7 +120,7 @@ QString MainWindow::getCryptText(const QString &shortenCryptoText) {
QCryptographicHash sha_generator(QCryptographicHash::Sha256);
sha_generator.addData(cryptoText.toUtf8());
- if (sha_generator.result().toHex() == sha) {
+ if (sha_generator.result().toHex() == sha && serviceToken == serviceTokenFromServer) {
return cryptoText;
} else QMessageBox::critical(this, tr("Error"), tr("Invalid short ciphertext"));