Redirect user after registration requiring administrator approval

mvc - August 17, 2007 - 17:22
Project:Drupal
Version:6.1
Component:user system
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

This is a 6.x version of a patch submitted against 5.x, please see description there: http://drupal.org/node/165604

AttachmentSize
user.module_redirect.diff638 bytes

#1

earnie - August 21, 2007 - 11:28
Status:needs review» reviewed & tested by the community

Again we need the committers review.

#2

Gábor Hojtsy - August 21, 2007 - 12:36
Status:reviewed & tested by the community» needs review

Well, who tested this?

#3

drumm - September 12, 2007 - 07:12

I reviewed and committed the 5.x version. This is different enough that the review probably does not apply.

#4

Freso - September 14, 2007 - 17:19
Status:needs review» reviewed & tested by the community

gentoo-vm drupal6 # patch -p0 < user.module_redirect.diff
patching file modules/user/user.module
Hunk #1 succeeded at 2151 (offset 592 lines).

After setting the Public registrations to Visitors can create accounts but administrator approval is required., I went and used another browser to create a new user and after registering, I was redirected back to user/register. I then went to the command line and applied the patch (as can be seen above), and after applying the patch, I'm sent to the front page when making new accounts. I do not see anything suspect in the code, and since it has already gone in for D5, I'm fairly sure there aren't any hidden traps I am not aware of. Marking RTBC.

#5

Gábor Hojtsy - September 14, 2007 - 17:38
Status:reviewed & tested by the community» fixed

Thanks for the tests, committed!

#6

Anonymous - September 28, 2007 - 17:41
Status:fixed» closed

#7

kenorb - October 24, 2008 - 14:40

How can I make custom redirect after account has been created?
I've tried redirect and destination keys, in form_alter, user hook during validate and submit and no results.
Any ideas?

#8

kenorb - October 24, 2008 - 15:04

Ok, I found it. I've to change in form_alter something like that:

case 'user_register':
    $form['destination']['#value'] = 'some/page';
break;

#9

pghimire - November 13, 2008 - 00:57
Version:6.x-dev» 6.1
 
 

Drupal is a registered trademark of Dries Buytaert.