Hot answers tagged

2

You can use a plugin onAfterRoute event to override controller tasks in a sense. It's not perfect but it beats core hacking. The following example mimics UsersControllerReset:request() but redirects to confirmation page even when model returns false. defined('_JEXEC') or die; use Joomla\CMS\Language\Text; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\CMS\...


2

To avoid a core hack there are two approaches I would suggest you could either create your own Model that would extend UserModelReset so that you can insert a fake user id when a valid one is not found. Or create an override for /com_users/view/reset/tmpl/default.php and replace line 24 to not call reset.request in the subcontroller reset.php but some code ...


2

Great Question Brett. This is one of the only core hacks I've ever had to make. If someone has a better solution then please post it here. In this file: https://github.com/joomla/joomla-cms/blob/staging/components/com_users/models/reset.php In the public function processResetRequest($data) Where it checks to see if the user exists just return true early. ...


2

Two questions: Do you want your users log in front or backend of your site? The workflow is a little different for each scenario. What user functionality you want?, or want to extend?, once the user has logged in. To provide this to your users you need already establish your user groups. The first case: if you want to provide a "user menu" in the front-...


2

Create a simple ajax plugin that handles your user login logic and returns a message for your users. The following 2 files should be zipped together and installed on your site. userlogin.php <?php defined('_JEXEC') or die; // Import library dependencies jimport('joomla.plugin.plugin'); class plgAjaxUserLogin extends JPlugin{ function ...


1

Whenever you call JUserHelper::getProfile() the code in that function triggers a Joomla event 'onContentPrepareData' to which the Joomla user plugin User - Profile subscribes. This plugin adds in the profile data which has been stored for this user and returns it as an array. However, plugins have an Access field which controls which User Groups have viewing ...


1

The easiest way to do what you are trying to accomplish is with template overrides, not plugin events (we don't call them "hooks" in Joomla). Ideally, you'd need to make a template override for com_users' login view and the mod_login module to make sure that both places where a user can log in are covered. The reason I'm not recommending a plugin ...


1

The solution was the change the Login Redirect Type to an Internal URL, and ensure it was non-sef. This is in the documentation https://docs.joomla.org/How_do_you_redirect_users_after_a_successful_login%3F Due to a security fix on Joomla 3.4.6, the redirect url must be an internal url, it must start with index.php? and be a non-sef url. Before Joomla 3.4.6, ...


1

I wrote a wee module based on your code above and it worked ok. Here's my code for comparison. (I set URL params like ?newusr=fredc&newpwd=fredc) use Joomla\CMS\Factory; $app = Factory::getApplication(); // equivalent of $app = JFactory::getApplication(); $input = $app->input; if ($input->exists('newusr') && $input->exists('newpwd'))...


1

yes indeed, it works with the acymailing plugin from the free version of acymailing. Install it and in the plugin options select "plain text for password" Then try with the following: https ://siteadresshere?user=userhere&passw=passwordhere


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