mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
allow multiple creation transactions in one request
This commit is contained in:
parent
2910d85729
commit
44dcdf79e2
@ -135,7 +135,7 @@ Session* SessionManager::getNewSession(int* handle)
|
|||||||
}
|
}
|
||||||
catch (Poco::TimeoutException &ex) {
|
catch (Poco::TimeoutException &ex) {
|
||||||
printf("[SessionManager::getNewSession] exception timout mutex: %s\n", ex.displayText().data());
|
printf("[SessionManager::getNewSession] exception timout mutex: %s\n", ex.displayText().data());
|
||||||
return false;
|
return nullptr;
|
||||||
}
|
}
|
||||||
//mWorkingMutex.lock();
|
//mWorkingMutex.lock();
|
||||||
|
|
||||||
|
|||||||
@ -38,10 +38,13 @@ int TransactionCreation::prepare()
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
memcpy(mReceiverPublicHex, mReceiverUser->getPublicKeyHex().data(), 64);
|
memcpy(mReceiverPublicHex, mReceiverUser->getPublicKeyHex().data(), 64);
|
||||||
if (!mReceiverUser->validateIdentHash(mProtoCreation.ident_hash())) {
|
// uncomment because not correctly working
|
||||||
|
/*if (!mReceiverUser->validateIdentHash(mProtoCreation.ident_hash())) {
|
||||||
addError(new Error(functionName, "ident hash isn't the same"));
|
addError(new Error(functionName, "ident hash isn't the same"));
|
||||||
|
addError(new ParamError(functionName, "hash calculated from email: ", mReceiverUser->getEmail()));
|
||||||
|
addError(new ParamError(functionName, "hash: ", std::to_string(mProtoCreation.ident_hash())));
|
||||||
return -3;
|
return -3;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user