?
avatar lal12
lal12
30 Jun 2017

Hello,

some while ago I wrote a plugin which authenticated my joomla users against an external database. I used the code from the gmail plugin and modified it for my purpose. This worked perfectly, users who logged in got created in the joomla users database automatically. But since an update ( I can't say which update), this does not work anymore. Users get an error message, that they are not allowed to see the private section of the site. User accounts which are also in my local Joomla Database can login, but new users can't, before they were just added to the database.

I was able to narrow it down to the code in file /plugins/user/joomla/joomla.php in function onUserLogin, in line 217 the error message is thrown, so it seems that the user can't be authorized. The user is also not created in the database. This should happen in the function _getUser, which is called in line 190.

Thanks
lal12

avatar lal12 lal12 - open - 30 Jun 2017
avatar joomla-cms-bot joomla-cms-bot - change - 30 Jun 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 Jun 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Jun 2017
Category Authentication
avatar rdeutz
rdeutz - comment - 1 Jul 2017

If the user is not created then login isn't possible, you should check why the user is not created.

avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Jul 2017
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Jul 2017
Status Discussion Information Required
avatar wilsonge
wilsonge - comment - 2 Jul 2017

If the user is not created then login isn't possible, you should check why the user is not created.

That's not true. If you have custom authorisation plugin you can succesfully authenticate and enable the auto-registration option in the Joomla User plugin (https://github.com/joomla/joomla-cms/blob/staging/plugins/user/joomla/joomla.php#L380-L386)

avatar lal12
lal12 - comment - 2 Jul 2017

That's exactly what I did, but that's was isn't working anymore. Btw where can I view the JLog output? (https://github.com/joomla/joomla-cms/blob/staging/plugins/user/joomla/joomla.php#L384)

avatar brianteeman
brianteeman - comment - 18 Aug 2017

Did you resolve this?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Sep 2017

If this Issue get no Response, it will be closed at 22th October 2017.

avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Oct 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-10-22 05:30:59
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 22 Oct 2017
Closed_Date 2017-10-22 05:30:59 2017-10-22 05:31:00
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 22 Oct 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 22 Oct 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Oct 2017

This has been closed due to lack of response to the requests above – it can always be reopened.

Add a Comment

Login with GitHub to post a comment