Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 6:55 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How can the customers change sip/iax friends password ?
PostPosted: Wed Nov 09, 2011 2:45 pm 
Offline

Joined: Wed Nov 09, 2011 2:20 pm
Posts: 1
Hi !
I am using a2billing 1.9.4 for testing, in the customer web-interface, I didn't see any way for the customer can change the pass for their sip/iax accounts, I see this is very important, because if someone hacked the customer 's sip/iax . they can use that customer account without enter PIN number.
Do you have any way to do that ?
Thanks


Top
 Profile  
 
 Post subject: Re: How can the customers change sip/iax friends password ?
PostPosted: Fri Mar 09, 2012 9:35 pm 
Offline
User avatar

Joined: Fri Sep 18, 2009 5:46 pm
Posts: 132
Location: hhhhmmmmm
this function is not available in any version of a2b


Top
 Profile  
 
 Post subject: Re: How can the customers change sip/iax friends password ?
PostPosted: Thu Jan 31, 2013 1:19 pm 
Offline

Joined: Tue Nov 13, 2012 11:15 am
Posts: 4
To fix this issue I modified A2Billing_entity_password.php file.

It had:


if ($form_action=="ask-modif") {
$instance_sub_table = new Table('cc_card',"id");
$check_old_pwd = "id = '".$_SESSION["card_id"]."' AND uipass = '$OldPassword'";
$result_check=$instance_sub_table -> Get_list ($DBHandle,$check_old_pwd);
if (is_array($result_check)) {
$QUERY = "UPDATE cc_card SET uipass= '".$NewPassword."' WHERE ( ID = ".$_SESSION["card_id"]." ) ";
$result = $instance_sub_table -> SQLExec ($DBHandle, $QUERY, 0);
// update Session password
$_SESSION["pr_password"] = $NewPassword;
}
}

I replaced to:


if ($form_action=="ask-modif") {
$instance_sub_table = new Table('cc_card',"id");
$check_old_pwd = "id = '".$_SESSION["card_id"]."' AND uipass = '$OldPassword'";
$result_check=$instance_sub_table -> Get_list ($DBHandle,$check_old_pwd);
if (is_array($result_check)) {
// GUI
$QUERY = "UPDATE cc_card SET uipass= '".$NewPassword."' WHERE ( ID = ".$_SESSION["card_id"]." ) ";
$result = $instance_sub_table -> SQLExec ($DBHandle, $QUERY, 0);
// SIP
$QUERY = "UPDATE cc_sip_buddies SET secret= '".$NewPassword."' WHERE ( id_cc_card = ".$_SESSION["card_id"]." ) ";
$result = $instance_sub_table -> SQLExec ($DBHandle, $QUERY, 0);
// update Session password
$_SESSION["pr_password"] = $NewPassword;
}
}

After that, once customer changed password from his interface his login and SIP password are synchronized and SIP password changed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group