Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Apr 24, 2024 9:01 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Card Alias. User defineable? [solution]
PostPosted: Thu Mar 30, 2006 8:20 am 
Offline

Joined: Wed Mar 29, 2006 5:46 am
Posts: 15
Location: South Florida
Card Alias is primarily used as a login to the web interface. Customers should be able to set what they want the card alias to be during the signup process. Then they can get emailed their chosen cardalias as well as their random password to login. Once logged in, they should be able to change their password and/or possibly their cardalias.

Thanks for a great system!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 30, 2006 7:16 pm 
and ... the card alias may can be letters?


Top
  
 
 Post subject: Should be able to be letters
PostPosted: Thu Mar 30, 2006 11:13 pm 
Offline

Joined: Wed Mar 29, 2006 5:46 am
Posts: 15
Location: South Florida
I have already changed a customer of mine's cardalias to a name and it seemed to have taken. So there are no restrictions in the SQL database about the cardalias having to be an integer.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 31, 2006 12:20 am 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
no in the db but into the webinterface it should be restricted to number.
cardalias is also use to dial out a sip/iax friends that the reason we try
to keep it with digits only.

Rgds, Areski


Top
 Profile  
 
 Post subject: I get it. Can we change how they log in then?
PostPosted: Sat Apr 01, 2006 11:42 pm 
Offline

Joined: Wed Mar 29, 2006 5:46 am
Posts: 15
Location: South Florida
So it was designed to be like a phone number or "friendly" digits. Ie you could have a 10 digit PIN but a 4 or 5 digit alias or something. Easier for people to dial you?

Is it possible then, to have the customer UI allow people to log in via the PIN or even the email as the userid?

Right now my users have to remember a 6 digit pin for placing calls and a different 6 digit userid for their website login. For customers that ask, I try and set their alias to the PIN number but it's on a 1 by 1 basis.


Top
 Profile  
 
 Post subject: Fix?
PostPosted: Sat Jan 27, 2007 4:06 am 
Offline

Joined: Thu Aug 10, 2006 10:47 pm
Posts: 145
Location: LA,CA,USA
UPDATED!!!!! 2/1/07

Hello,

Well i found another option for this....it works and it's easy....please advise if there are any issues with this fix....

Basically i check email address OR the user alias for the web login....here's how:

change this file:

...../a2customer/lib/module.access.php line 118

FROM
Code:
if (strlen($user)==0 || strlen($user)>=20 || strlen($pass)==0 || strlen($pass)>=20) return false;


TO
Code:
if (strlen($user)==0 || strlen($user)>=50 || strlen($pass)==0 || strlen($pass)>=50) return false;


...../a2customer/lib/module.access.php line 120

FROM
Code:
$QUERY = "SELECT username, credit, activated, id, id_didgroup, tariff, vat, activatedbyuser FROM cc_card WHERE useralias = '".$user."' AND uipass = '".$pass."'";


TO
Code:
$QUERY = "SELECT username, credit, activated, id, id_didgroup, tariff, vat, activatedbyuser FROM cc_card WHERE (email = '".$user."' OR useralias = '".$user."') AND uipass = '".$pass."'";


There you have it now a user can login with their email address....


Last edited by crshman on Sun Feb 11, 2007 9:23 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 27, 2007 6:15 am 
Offline

Joined: Fri Apr 28, 2006 5:11 am
Posts: 426
Nice job, crshman! Thank you!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 12:50 pm 
Offline

Joined: Wed Dec 13, 2006 9:06 pm
Posts: 94
*Pats crshman on the back :D


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 02, 2007 3:08 am 
Offline

Joined: Thu Mar 01, 2007 4:44 pm
Posts: 14
Very nice... got it working too.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 27, 2007 5:39 pm 
Offline

Joined: Tue Mar 27, 2007 5:23 am
Posts: 93
problem:

when someone now signs up with the same email address with a different account, what happens?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 11 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