FIX_CHANGE_PASS_HASH_ISSUE
This commit is contained in:
parent
7440cdb322
commit
1b6c18ee88
@ -1518,12 +1518,7 @@ class RestAuthenticationController extends AdminController
|
||||
|
||||
public function savePassword()
|
||||
{
|
||||
log_message('error', ' ');
|
||||
log_message('error', ' ************************************* POST START **************************************** ');
|
||||
log_message('error', ' ');
|
||||
$this->myLogger->logme("error", "REST-AUTH-CONTROLLER - savePassword: Function called");
|
||||
$this->myLogger->logme("error", "REST-AUTH-CONTROLLER - savePassword: Received payload = " . json_encode($this->request->getJSON() ?? []));
|
||||
|
||||
try {
|
||||
|
||||
$payload = $this->request->getJSON();
|
||||
@ -1681,8 +1676,7 @@ class RestAuthenticationController extends AdminController
|
||||
if ($employeeData && password_verify($old_password, $employeeData['password'])) {
|
||||
|
||||
// Hash new password
|
||||
// $newHashedPassword = password_hash($new_password, PASSWORD_DEFAULT);
|
||||
$newHashedPassword = $new_password;
|
||||
$newHashedPassword = password_hash($new_password, PASSWORD_DEFAULT);
|
||||
|
||||
// Update password and clear OTP
|
||||
$updated = $this->employeeModel->update($employeeData['id'], [
|
||||
|
||||
@ -161,8 +161,10 @@ table.dataTable tbody td {
|
||||
// Date : 6/11/25 12:50
|
||||
$irda_amt = isset($row['total_irda_amt']) && $row['total_irda_amt'] !== '' ? (float)$row['total_irda_amt'] : 0;
|
||||
$exp_amt = isset($row['exp_amt']) && $row['exp_amt'] !== '' ? (float)$row['exp_amt'] : 0;
|
||||
$max_amount = max($irda_amt, $exp_amt);
|
||||
$total_irda_amt = number_format($max_amount, 2, '.', ''); ?>
|
||||
// $max_amount = max($irda_amt, $exp_amt);
|
||||
// $total_irda_amt = number_format($max_amount, 2, '.', '');
|
||||
$total_irda_amt = empty($row['total_irda_amt']) ? $row['exp_amt'] : $row['total_irda_amt'];
|
||||
?>
|
||||
<td class="right-align-input" onclick="showCoShareStatementDetails(this)" data-id="<?= $row['pt_id'] ?>"><?php echo $total_irda_amt; ?></td>
|
||||
<td class="right-align-input"><?php echo empty($row['billed_amt']) ? '0.00' : $row['billed_amt'] ?></td>
|
||||
<!-- <td class="right-align-input"><?php echo empty($row['unbilled_amt']) ? '0.00' : $row['unbilled_amt']?></td> -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user