[FIX] Proper fix for Payout ID #
This commit is contained in:
parent
19fc975d95
commit
a9d9fe4b64
@ -31,9 +31,7 @@ class Payout Extends Base {
|
|||||||
$tValid = $this->token->isTokenValid($account_id, $strToken, 7);
|
$tValid = $this->token->isTokenValid($account_id, $strToken, 7);
|
||||||
if ($tValid) {
|
if ($tValid) {
|
||||||
$delete = $this->token->deleteToken($strToken);
|
$delete = $this->token->deleteToken($strToken);
|
||||||
if ($delete) {
|
if (!$delete) {
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
$this->log->log("info", "User $account_id requested manual payout but failed to delete payout token");
|
$this->log->log("info", "User $account_id requested manual payout but failed to delete payout token");
|
||||||
$this->setErrorMessage('Unable to delete token');
|
$this->setErrorMessage('Unable to delete token');
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user