mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
linux error
This commit is contained in:
parent
5c06bcb617
commit
762479fe33
@ -408,7 +408,7 @@ User::User(Poco::AutoPtr<controller::User> ctrl_user)
|
|||||||
//char* hexString = (char*)malloc(hexSize);
|
//char* hexString = (char*)malloc(hexSize);
|
||||||
memset(*hexStringTemp, 0, hexSize);
|
memset(*hexStringTemp, 0, hexSize);
|
||||||
sodium_bin2hex((char*)(*hexStringTemp), hexSize, pubkey, crypto_sign_PUBLICKEYBYTES);
|
sodium_bin2hex((char*)(*hexStringTemp), hexSize, pubkey, crypto_sign_PUBLICKEYBYTES);
|
||||||
mPublicHex = *hexStringTemp;
|
mPublicHex = std::string((char*)(*hexStringTemp));
|
||||||
mm->releaseMemory(hexStringTemp);
|
mm->releaseMemory(hexStringTemp);
|
||||||
}
|
}
|
||||||
if (model->existPrivateKeyCrypted()) {
|
if (model->existPrivateKeyCrypted()) {
|
||||||
|
|||||||
@ -84,7 +84,8 @@ namespace model {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
auto cm = ConnectionManager::getInstance();
|
auto cm = ConnectionManager::getInstance();
|
||||||
Poco::Data::Statement deleteStmt(cm->getConnection(CONNECTION_MYSQL_LOGIN_SERVER));
|
auto session = cm->getConnection(CONNECTION_MYSQL_LOGIN_SERVER);
|
||||||
|
Poco::Data::Statement deleteStmt(session);
|
||||||
deleteStmt << "delete from " << getTableName() << " where id = ?", Poco::Data::Keywords::use(mID);
|
deleteStmt << "delete from " << getTableName() << " where id = ?", Poco::Data::Keywords::use(mID);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user