function change_password_changepwd1_AfterUpdate(&$sender) { $change_password_changepwd1_AfterUpdate = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $change_password; //Compatibility //End change_password_changepwd1_AfterUpdate //Custom Code @18-2A29BDB7 // ------------------------- $dbw = new clsDBconnection1(); $sql1 = "update users set user_password ='******' where user_id=" . CCGetUserID(); $dbw->query($sql1); //$Result3 = $dbw->next_record(); if ($dbw->affected_rows() > 0) { $change_password->changepwd1->Errors->addError('<div class="alert alert-success">DONE! Password Succesfully Changed! Login with new password to continue...</div>'); CCLogoutUser(); CCSetCookie("iRadiologyLogin", ""); } else { $change_password->changepwd1->Errors->addError('<div class="alert">Unable to Change Password! Try Again Later!</div>'); } // ------------------------- //End Custom Code //DEL //Close change_password_changepwd1_AfterUpdate @8-7BFDFC76 return $change_password_changepwd1_AfterUpdate; }