diff options
Diffstat (limited to 'src/ui/main_window/MainWindowServerSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowServerSlotFunction.cpp | 2 |
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")); |