deactivate debug echo

This commit is contained in:
Dario Rekowski on RockPI 2020-02-19 09:09:04 +00:00
parent 0e847e3fad
commit 6f5b10538b
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ class AppController extends Controller
// we haven't get a pubkey? something seems to gone wrong on the login-server
$this->Flash->error(__('no pubkey'));
//var_dump($json);
return $this->redirect(Router::url('/', true) . 'account/error500', 303);
return $this->redirect(Router::url('/', true) . 'account/error500/noPubkey', 303);
}
} else {
if($json['state'] === 'not found' ) {

View File

@ -97,7 +97,7 @@ class Transaction extends TransactionBase {
//echo 'sig Pair: '; var_dump($sigPair); echo "<br>";
$pubkey = $sigPair->getPubKey();
$signature = $sigPair->getEd25519();
echo "verify bodybytes: <br>" . bin2hex($bodyBytes) . '<br>';
//echo "verify bodybytes: <br>" . bin2hex($bodyBytes) . '<br>';
if (!\Sodium\crypto_sign_verify_detached($signature, $bodyBytes, $pubkey)) {
$this->addError('Transaction::validate', 'signature for key ' . bin2hex($pubkey) . ' isn\'t valid ' );
return false;