mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
deactivate debug echo
This commit is contained in:
parent
0e847e3fad
commit
6f5b10538b
@ -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' ) {
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user