Skip to content

Commit

Permalink
https://github.com/CradlePHP/Cradle/issues/206
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Blanquera committed Jan 30, 2019
1 parent 35ca202 commit 7a2d9d2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@

//trigger model create
$this->trigger('system-model-create', $request, $response);

//remove password, confirm
$response
->removeResults('auth_password')
->removeResults('confirm');
});

/**
Expand Down Expand Up @@ -278,6 +283,11 @@

//trigger model search
$this->trigger('system-model-update', $request, $response);

//remove password, confirm
$response
->removeResults('auth_password')
->removeResults('confirm');
});

/**
Expand Down Expand Up @@ -308,6 +318,11 @@
//----------------------------//
// 3. Process Data
$this->trigger('auth-detail', $request, $response);

//remove password, confirm
$response
->removeResults('auth_password')
->removeResults('confirm');
});

/**
Expand Down Expand Up @@ -342,6 +357,11 @@

//return response format
$response->setError(false);

//remove password, confirm
$response
->removeResults('auth_password')
->removeResults('confirm');
});

/**
Expand Down Expand Up @@ -404,6 +424,11 @@

//return response format
$response->setError(false);

//remove password, confirm
$response
->removeResults('auth_password')
->removeResults('confirm');
});

/**
Expand Down

0 comments on commit 7a2d9d2

Please sign in to comment.