Solved

N00B Drupal User - User Password Reset

Posted on 2010-09-15
12
715 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 

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
 
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

624 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