Solved

N00B Drupal User - User Password Reset

Posted on 2010-09-15
12
709 Views
Last Modified: 2012-05-10
Hey all -

I have the basic Drupal e-mail setup working for a user password recovery, however, the redirect to

/user/#/edit

doesn't seem to be working.  I get that it has to be a Trigger or something, but I just don't understand how to set this up.  Any help would be appreciated.
0
Comment
Question by:sbweitzman
  • 7
  • 5
12 Comments
 
LVL 17

Assisted Solution

by:Thomas4019
Thomas4019 earned 125 total points
ID: 33684886
I don't really get what's going wrong. Could it just be that you need clean URL's setup? http://drupal.org/node/15365

What do you mean the redirect to /user/#/edit doesn't seem to be working? Are you getting a 404, or is it not redirecting at all.
0
 

Author Comment

by:sbweitzman
ID: 33685089
It's redirecting to the home page...

I'm using the default recovery setup, so what's sent in the e-mail is

/user/reset/59/1284571152/656109f92d6637c5496a6ef5122037e0

Which resets the password.  I'm supposed to get redirected to the following page:

/user/59/edit

After I reset, but I just get redirected to the home page, with no way to change my password.

Thanks Thomas,
Stu
0
 
LVL 17

Assisted Solution

by:Thomas4019
Thomas4019 earned 125 total points
ID: 33685120
I would try running it with Firebug open (http://getfirebug.com/) and the NET panel open. It will allow you to look at the redirects and see exactly what is going on. Firebug is awesome for many other uses as well.
0
 

Author Comment

by:sbweitzman
ID: 33685184
I'm sure this is just a site config issue...  I get a 302 Moved Temporarily response, then redirect to the home page.

How is that url supposed to be setup... Or is that a default?
0
 
LVL 17

Assisted Solution

by:Thomas4019
Thomas4019 earned 125 total points
ID: 33685276
That URL looks pretty standard, here's part of a URL one my Drupal sites spit out, user/reset/8/1284575484/b6c2b188fd19a922 ....

I would check your .htaccess file in your Drupal site root for any odd rules. Particularly maybe one redirecting from non www to the ww version or vice versa.
0
 

Author Comment

by:sbweitzman
ID: 33686462
Nothing there... I did notice a redirect script within the site, but after resetting to defaults it still doesn;t work...
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 17

Accepted Solution

by:
Thomas4019 earned 125 total points
ID: 33686498
Well, something unique about your site must be causing a problem (likely a contributed module, or htaccess). How old / large is this site? Do you have any funny contributed modules like Drupal FrontPage, Login Destination, Page Redirects, etc.

Maybe try turning off Clean URLS and seeing if the problem persists?
0
 

Author Comment

by:sbweitzman
ID: 33686575
Clean URLs aren't implemented, and there's not any other modules that I think can be causing this... I checked the permissions, thinking that might be the issue as well.. no dice...

Argh.

Stu
0
 

Author Comment

by:sbweitzman
ID: 33687171
I figured it out... finally... It was a permissions issue.  Anonymous User has to be checked under user profile administration.

Stu
0
 

Author Comment

by:sbweitzman
ID: 33693489
I wanted to give Thomas some of the points for this question, since he did offer a lot of great advice.
0
 

Author Closing Comment

by:sbweitzman
ID: 33693513
Thomas has a killer knowledge of Drupal, and though he couldn't pin down my particular problem, there's no way he could have known about our particular setup, etc.

Dupal is a ridiculous beast... Glad thomas can help slay some of the dragons out there.
0
 
LVL 17

Expert Comment

by:Thomas4019
ID: 33693655
Thanks for you very kind compliments, Drupal is a rather ridiculous beast, an awesome ridiculous beast, that is.

Your weapons are very important, Firebug, server logs, Drupal's logs, and especially the contributed module's issue queues are extremely helpful.

Thomas
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now