Super admin can only add user in "limited email reg" domains? (5 posts)

  1. dgilmour
    Posted 4 years ago #

    I've registration limited to a set of school email domains, but have regularly used Super Admin to manually add accounts for parents who don't have email addresses in the school domains.

    Today - possibly the first time I've tried it since upgrading to 3.2.1 -that's no longer possible; I get the error "Sorry, that email address is not allowed!" I'm using Network Admin > Users > Add new.

    Has the functionality changed here? Don't *think* I've done anything likely to have broken it.

  2. I'm 99% sure it changed in 3.2 to provide the same strictures as front end.

    Someone had a fix in the form of a plugin (shape of network activate) on here...

  3. dgilmour
    Posted 4 years ago #

    @Ipstenu Thanks, I'll explore and post a link. :-)

  4. Dan Collis-Puro
    Posted 4 years ago #

    @dgilmour - What did you turn up for plugins? This change is kicking my butt right now.

  5. Dan Collis-Puro
    Posted 4 years ago #

    Nevermind, I don't need the plugin. I fixed this with the new "wpmu_validate_user_signup" hook. This allows superadmins to bypass email rules everywhere and ignores the limited email domain settings entirely. The preg_match() sets the pattern of allowed email addresses.

    In a network activated plugin:
    [Code moderated as per the Forum Rules. Please use the pastebin]

Topic Closed

This topic has been closed to new replies.

About this Topic