?
avatar alve89
alve89
12 Dec 2015

I wrote an authentication plugin for Joomla 3.4.5. After logging in (with no other auth-plugins enabled) I got this message:

You can't access the private section of this site.

First I thought this was a problem of my plugin, so I changed it to the following:

 public function onUserAuthenticate($credentials, $options, & $response)
 {
      $response->error_message = '';
      $response->fullname = 'Max Mustermann';
      $response->email  = 'mymail@domain.tld';
      $response->username = 'username';
      $response->status = JAuthentication::STATUS_SUCCESS;
 }

So actually I should be authenticated immediately. But I still get the error message from above.

It's a absolutely fresh installation of Joomla with two main entries - one is set to "Public", the other one to "Registered".

Why can't I login?

avatar alve89 alve89 - open - 12 Dec 2015
avatar alve89
alve89 - comment - 12 Dec 2015

I forgot to set the permission for guests to be allowed to login on frontend, so it is working fine now.
But is there a possibility to set which user-group a logged in user is allocated to?

avatar brianteeman
brianteeman - comment - 12 Dec 2015

The best place to discuss this is on the mailing list https://groups.google.com/forum/#!forum/joomla-dev-general

avatar brianteeman brianteeman - change - 12 Dec 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-12-12 22:44:01
Closed_By brianteeman
avatar brianteeman brianteeman - close - 12 Dec 2015
avatar brianteeman brianteeman - close - 12 Dec 2015
avatar brianteeman brianteeman - change - 14 Dec 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment