mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-02-24 23:45:38 +08:00
Fix change password Customer
This commit is contained in:
parent
8ee0edf985
commit
c85f680fea
1 changed files with 1 additions and 2 deletions
|
@ -35,7 +35,7 @@ switch ($action) {
|
|||
if ($npass != $cnpass) {
|
||||
r2(U . 'accounts/change-password', 'e', 'Both Password should be same');
|
||||
}
|
||||
|
||||
$user->password = $npass;
|
||||
$tur = ORM::for_table('tbl_user_recharges')->where('customer_id', $user['id'])->find_one();
|
||||
if ($tur) {
|
||||
// if has active plan, change the password to devices
|
||||
|
@ -53,7 +53,6 @@ switch ($action) {
|
|||
}
|
||||
}
|
||||
}
|
||||
$user->password = $npass;
|
||||
$user->save();
|
||||
User::removeCookie();
|
||||
session_destroy();
|
||||
|
|
Loading…
Reference in a new issue