Skip to main content
3 votes

Register Plugin/Class Joomla

As mentioned in the comments, normally you should not use plugin objects directly. But if you need it for some reason, the correct way is using Joomla\CMS\Extension\ExtensionManagerInterface::...
Sharky's user avatar
  • 11.5k
3 votes

How can I reset Two Factor Authentication on my Joomla site?

You have cPanel/FTP access, then: Go to /plugins Rename twofactorauth directory. Now, try to access Joomla Administrator – you will no longer have a secret key field to enter. This is one of the ...
Kajal Pasha's user avatar
2 votes

Register user via external script and a random password

I don't think there is a way, within the Joomla core, to force a password reset. There are quite a few extensions for that sort of thing though. The activation value wont do anything, I think, if ...
AndyGaskell's user avatar
2 votes
Accepted

Joomla forgets session (cookie) straight after login

I fixed the problem myself. Unfortunately, it was even my own mistake, you couldn't have come up with the solution. I don't access the Joomla site directly but there is an HTTP gateway before it. The ...
Sumafu's user avatar
  • 31
2 votes
Accepted

Menu links working only for logged in users

It's probably best to run a backup before making any changes. SEF To narrow down the problem, try disabling URL Rewriting and SEF and renaming .htaccess to .htaccess.old. If this helps, try re-...
Neil Robertson's user avatar
2 votes
Accepted

A solution to enter Username instead of E-mail for "Reset Password"

After digging around for alternative solutions I found a way to override the model, thanks to this documentation: https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core Step ...
GeniusDesign's user avatar
2 votes
Accepted

Joomla plugin ajax request / class extend

Plugins call a single method based on the name of the plugin. But you can pass anything to the method including the name of another method you would like to run. Hence, running a call like the ...
jamesgarrett's user avatar
  • 3,299
2 votes
Accepted

Register Plugin/Class Joomla

For having and working with a plugin in a module of Joomla directly (not via events), for testing this let's say you have your own plugin group called: 'myplug' and your plugin is called: 'testplugin1'...
Zollie's user avatar
  • 2,946
1 vote
Accepted

How to override login failure on Joomla?

You would normally create your own plugin for the group Authentication and include your own function onUserAuthenticate() that has your code. Once installed you would have your plugin set in the Order ...
Irata's user avatar
  • 4,001
1 vote

How to authenticate a user with the official Joomla 4 REST API?

I'm exactly in the same situtation. Mobile app users need to log in with their Joomla credentials. Seems like an obvious feature for a REST api. We used the cAPI plugin which offered this for Joomla 3....
sobo's user avatar
  • 111
1 vote
Accepted

Can I use a temporary access token instead of username and password to create a login session?

I do not know of any plugin that does it, but one can implement it as follows: 1. Have a plugin Make sure you have a plugin, which looks like class YourPlugin extends JPlugin { //... } 2. Have a ...
Lajos Arpad's user avatar
1 vote

Joomla plugin ajax request / class extend

To clarify, com_ajax does not call any method in your plugin. Instead, it triggers a regular event to which all loaded plugins can respond. So in theory the plugin query variable should be the name of ...
Sharky's user avatar
  • 11.5k
1 vote
Accepted

Undefined property: PlgAuthenticationmyauthplugin::$name in /somepath/www/libraries/src/Authentication/Authentication.php on line 184

The issue was an Joomla bug, it was resolved after updating joomla to Joomla 4.2.3. I was on joomla 4.1.x
Bas van den Dikkenberg's user avatar
1 vote

Avoid login from onUserAuthenticate

This is not a correct way of doing this as you should not use 'die' The proper way to do this will be using this method in the Authentication plugin function onUserAuthenticate($credentials, $...
Pratyush's user avatar
  • 496
1 vote
Accepted

User Login passthrough in iframe

Certainly what you have presented in your question, is not the way to do it. One way would be to have shared user sessions for the 2 sites. There are some extensions that would help you with this: ...
FFrewin's user avatar
  • 19.7k
1 vote

How to log in user into Joomla 3.x from external script

This is a pretty late reply but may help someone. If you want to login user from the Joomla itself as the Site 1 is Joomla you can get the user id of the user and use the following method to login if ...
Pratyush's user avatar
  • 496
1 vote

How to leverage external JSON REST API in Joomla 3.5.1 after user login?

You have to create an authentification plugin see the documnentation :https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla/en and my pseudo code below <?php /** * ...
Pierre-André Vullioud's user avatar
1 vote

How to leverage external JSON REST API in Joomla 3.5.1 after user login?

You must use onUserAfterLogin as this triggered after successful login. Authenticate is called to verify login credentials (for example you can use it to block login for users with specific IP, or to ...
Alexandr's user avatar
  • 1,130

Only top scored, non community-wiki answers of a minimum length are eligible