Using Joomla 2.5 and trying to do some redirects based on the login module where you can click Forgot your password or Forgot your username.
I thought this should work for username:
if((JRequest::getString('option')=='com_users') && (JRequest::getString('view')=='remind'))
and this for password:
if((JRequest::getString('option')=='com_users') && (JRequest::getString('view')=='reset'))
I never seem to get into this if statement. What am I doing wrong?
I found the only thing that worked for me is to use:
This covers both cases of
remindandreset. Not sure if there are other edge cases where this won’t match.