Skip to content

Commit

Permalink
fix hide password
Browse files Browse the repository at this point in the history
  • Loading branch information
zafranf committed Feb 14, 2022
1 parent 730e4cf commit ad23c5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/Traits/MainTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ public function activityLog($description, $user = null)
{
/* Filter password */
$sensor = 'xxx';
if (isset($_POST['password'])) {
if (\Request::post('password')) {
\Request::merge(['password' => $sensor]);
}
if (isset($_POST['password_confirmation'])) {
if (\Request::post('password_confirmation')) {
\Request::merge(['password_confirmation' => $sensor]);
}
if (isset($_POST['user_password'])) {
if (\Request::post('user_password')) {
\Request::merge(['user_password' => $sensor]);
}
if (isset($_POST['_token'])) {
if (\Request::post('_token')) {
\Request::merge(['_token' => $sensor]);
}

Expand Down

0 comments on commit ad23c5a

Please sign in to comment.