Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-20T10:39:42-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16946 2012-01-20T10:39:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16946&p=61104#p61104 <![CDATA[Re: Open Registration - set to NO, but still possible.]]> Statistics: Posted by Jason Caldwell — January 20th, 2012, 10:39 am


]]>
2012-01-20T08:43:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16946&p=61099#p61099 <![CDATA[Re: Open Registration - set to NO, but still possible.]]> Maby it woud be less confusing if form woud somehow inform about closed registration - even an admin.
Something like "Registration is closed - you see this from cause logged as admin". Or to avoid this even disallow admin to register (hey he can swich the option or create users manually).

Statistics: Posted by zielakxar — January 20th, 2012, 8:43 am


]]>
2012-01-19T22:31:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16946&p=61042#p61042 <![CDATA[Re: Open Registration - set to NO, but still possible.]]> Thanks for reporting this important issue.
~ I'm not aware of any issue related to security in this regard. A browser cache, and/or a page generation cache could prohibit you from seeing an updated version of a page, but it should not allow you to actually register if Open Registration is turned off, as this requires interaction with server side scripting, which would detect such things.

This is something that's hard coded into WordPress which prevents this.
/wp-login.php
Code:
case 'register' :
    if ( is_multisite() ) {
        // Multisite uses wp-signup.php
        wp_redirect( apply_filters( 'wp_signup_location', site_url('wp-signup.php') ) );
        exit;
    }

    if ( !get_option('users_can_register') ) {
        wp_redirect( site_url('wp-login.php?registration=disabled') );
        exit();
    } 

Statistics: Posted by Jason Caldwell — January 19th, 2012, 10:31 pm


]]>
2012-01-19T22:07:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16946&p=61036#p61036 <![CDATA[Open Registration - set to NO, but still possible.]]> I have open registration disabled both in s2 member and general wordpress settings.

Edit:
Ok - solved it. It seems that if browser will remember some settings - open registration will be still possible.
Seems like a security flaw ?
Anyway cleaning browser cashe did the trick. I'm leaving this post for future people. Although problem is fixed it seems pretty disturbing that with right cookies people can bypass Closed registration - and it wasnt only visual issue - i've chcecked and i was able to actually register - looks like something worth for devs to look into.
Tested on Firefox 9.0.1.

Statistics: Posted by zielakxar — January 19th, 2012, 10:07 pm


]]>