Download & Extend

Redirect user after registration requiring administrator approval

Project:Drupal core
Version:6.1
Component:user system
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

AttachmentSizeStatusTest resultOperations
user.module_redirect.diff638 bytesIgnored: Check issue status.NoneNone

Comments

#1

Status:needs review» reviewed & tested by the community

Again we need the committers review.

#2

Status:reviewed & tested by the community» needs review

Well, who tested this?

#3

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

#4

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

Status:reviewed & tested by the community» fixed

Thanks for the tests, committed!

#6

Status:fixed» closed (fixed)

#7

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

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

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

#9

Version:6.x-dev» 6.1
nobody click here