vtiger Forum Index vtiger
The Honest Open Source CRM
 

Customer Portal Login Not working
Click here to go to the original topic

 
       vtiger Forum Index -> Customer Portal
Previous topic :: Next topic  
Author Message
kenzacm



Joined: 24 Feb 2007
Posts: 1

Posted: Fri Jan 11, 2008 2:15 am    Post subject: Customer Portal Login Not working  

hi everyone,
im using vTiger 5.0.4 however the Customer portal is not letting me giving me the Please enter a valid Username and Password error

i tried all solutions unsucessfully please help.
Back to top  
prasad.a



Joined: 01 Aug 2007
Posts: 976

Posted: Fri Jan 11, 2008 11:32 am    Post subject: Customer Portal Login Not working<br /><a href=&quo  

Hi kenzacm,

Make sure you are using customerportal 5.0.4 with vtigercrm 5.0.4.

Turn on debugging in vtigercrm/log4php.properties
Code: log4php.rootLogger=DEBUG, A1

Try the login and send us more details.

Regards,
Prasad
vtiger Team
Back to top  
questfar



Joined: 19 Jan 2008
Posts: 6

Posted: Mon Jan 21, 2008 1:43 pm    Post subject: Re: Customer Portal Login Not working  

I had to make changes to the CustomerAuthentication.php file as follows.

if($result[0]['user_name'] == $username && $result[0]['user_password'] == $password)
{

session_start();
$_SESSION['customer_id'] = $result[0]['id'];
$_SESSION['customer_name'] = $result[0]['user_name'];
$_SESSION['last_login'] = $result[0]['last_login_time'];
$_SESSION['support_start_date'] = $result[0]['support_start_date'];
$_SESSION['support_end_date'] = $result[0]['support_end_date'];


The original code is:

if($result[1] == $username && $result[2] == $password)
{

session_start();
$_SESSION['customer_id'] = $result[0];
$_SESSION['customer_name'] = $result[1];
$_SESSION['last_login'] = $result[3];
$_SESSION['support_start_date'] = $result[4];
$_SESSION['support_end_date'] = $result[5];

The problem stems from the CustomerPortal.php which has the authenticate_user function. This function returns an associative array, where customerauthenticate.php was looking for a regular array.
This resolved the login problem for me, the next problem I encountered was that tickets could not be saved. There is a problem with the Session_ID variable , but I have not had the time to troubleshoot yet.
Back to top  
 
       vtiger Forum Index -> Customer Portal
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.15 © 2001, 2002 phpBB Group