1

I'm using the rules module with drupal 7 in order to redirect anonymous users to the login page.

Events: Drupal is initializing Conditions: User has role(s) - Parameter: User: [site:current-user], Roles: anonymous user NOT Text comparison - Parameter: Text: [site:current-page:url], Matching text: user/login Actions: Page redirect - Parameter: URL: user/login

My problem is I need the "request new password" to work. How do I tell Rules to ignore clicks to user/password?

This is the current setup for the Actions but it doesnt work. enter image description here
When a user gets to the login page I want them to be able to click Request New Password and not be redirected back to user/login.

0

Try adding a condition to your redirection rule like this :

  1. Path has url alias
  2. Value : user/password
  3. Negate : True

Edit :

It must be something like this :

Rules negate condition

  • Could you clarify Negate:true. Should Negate be checked or unchecked? – Michael Rizzo Jan 7 '15 at 21:33
  • negate true = checked – Nabil SADKI Jan 7 '15 at 23:31
  • I've edited mu answer. Check the screenshot – Nabil SADKI Jan 8 '15 at 11:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.