mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
little fixes
This commit is contained in:
parent
ad971d8cd5
commit
987c820a5b
@ -53,6 +53,7 @@ bool KeyPair::generateFromPassphrase(const char* passphrase, Mnemonic* word_sour
|
||||
unsigned char word_cursor = 0;
|
||||
for (size_t i = 0; i < pass_phrase_size; i++) {
|
||||
if (passphrase[i] == ' ') {
|
||||
if(buffer_cursor < 3) continue;
|
||||
if (word_source->isWordExist(acBuffer)) {
|
||||
word_indices[word_cursor] = word_source->getWordIndex(acBuffer);
|
||||
}
|
||||
|
||||
@ -1014,7 +1014,7 @@ bool User::setPrivKey(const MemoryBin* privKey)
|
||||
auto encyrptedPrivKey = encrypt(privKey);
|
||||
lock("User::setPrivKey");
|
||||
mState = USER_COMPLETE;
|
||||
mPrivateKey = encrypt(privKey);
|
||||
mPrivateKey = encyrptedPrivKey;// encrypt(privKey);
|
||||
unlock();
|
||||
|
||||
return true;
|
||||
|
||||
@ -184,7 +184,7 @@ int SigningTransaction::run() {
|
||||
}
|
||||
catch (Poco::Exception& e) {
|
||||
addError(new ParamError("SigningTransaction", "connect error to php server", e.displayText().data()));
|
||||
printf("url: %s\n", ServerConfig::g_php_serverHost);
|
||||
printf("url: %s\n", ServerConfig::g_php_serverHost.data());
|
||||
sendErrorsAsEmail();
|
||||
return -8;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user