Solved

N00B Drupal User - User Password Reset

Posted on 2010-09-15
12
714 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
[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

 

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

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 …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

710 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