This topic is locked

Joomla login

8/11/2010 3:58:28 PM
PHPRunner General questions
A
Astrid author

I've read a lot of topics about using jos_users to login in PHPRunner, but I can't get it working.

Using Joomla 1.5.20 and PHPRunner 5.2

Is there something I've missed?

First problem now is to actually login in site/phprunnerfolder/login.php. No matter what I try, I'm getting 'invalid login'.

Login works with hardcoded login and password. But I want to be able to ad my phprunner app in Joomla using wrapper-login.

A
ann 8/12/2010

Astrid,
the problem usually happens because username and/or password fields are of CHAR type. This means that in your database usernames and passwords will be filled up with spaces to match field size. Thus, if username field type is CHAR[10] you need to enter username as "admin ".
To fix this issue you need to change field type to VARCHAR. Also, make sure you remove extra spaces from usernames and passwords that are already in the database.
Please check the following article (on how to integrate PHPRunner application into Joomla website):

http://www.asprunner.com/forums/topic/13251-phprunner-and-joomla/

A
Astrid author 8/13/2010

Hi Ann,

This is not the problem. Found out that it's caused by Joomla password hash (MD5;salt). I've older users in my database that only have a MD5 encrypted password and found out that the login from jos_users works perfect with them.

So it would be great if the encrypt option would support md5;salt.

A
aclhkaclhk 8/20/2010

I also confirm that it is caused by joomla passwd hash. when will phprunner support it?
does anyone know if joomla could change back to plain md5?



Hi Ann,

This is not the problem. Found out that it's caused by Joomla password hash (MD5;salt). I've older users in my database that only have a MD5 encrypted password and found out that the login from jos_users works perfect with them.

So it would be great if the encrypt option would support md5;salt.

Sergey Kornilov admin 8/20/2010

Astrid, aclhkaclhk,
it doesn't matter that Joomla and PHPRunner use different password encryption schema.

If you take another look at Joomla tutorial you'll find that PHPRunner retrieves current user info from jos_session table. This means if you are logged in to Joomla you are logged in to PHPRunner automatically.
If you need more help with troubleshooting open a ticket at http://support.xlinesoft.com sending FTP and Joomla access info.

A
Astrid author 10/17/2010

Sergey,

Works great! Just wonder if it is possible to limit the login to just one user. I've managed to limit access to specific list page to group author, but what I'm actually looking for is to limit access to just one of the authors.
Would be great by the way if you could integrate MD5 in a next version. Codechanges won't be necessary anymore as Joomla has an excellent component for external login: wlxt wrapper login. This component allows you to restrict access to just one user.

Sergey Kornilov admin 10/18/2010

You can restrict login to a single person in PHPRunner using events. Unfortunately I have no idea how to achieve the same using Joomla components.