Hello there,

In "admin/settings/user", choose "Visitors can create accounts but administrator approval is required" for "Public registrations". Now, when somebody creates a new account, Drupal automatically changes the status to "active" without any administrator approval.

A

CommentFileSizeAuthor
#1 user-pending-approval.patch1.56 KBmerlinofchaos

Comments

merlinofchaos’s picture

Assigned: Unassigned » merlinofchaos
Status: Active » Needs review
StatusFileSize
new1.56 KB

This simple patch fixes the issue; however, I think we need to create a series of define() statements for user_register options. I suspect this bug came into place because someone saw "== 1" and thought it was silly, not realizing that 2 was a valid option.

UncleD’s picture

Status: Needs review » Reviewed & tested by the community

Tested this patch by first doing a normal HEAD user creation with administration set to requiring approval. Account was set to active, no approval required. After applying this patch, and creating another user, approval was required, patch works properly! +1

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks for testing too!

Anonymous’s picture

Status: Fixed » Closed (fixed)