PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Open Registration - set to NO, but still possible.

s2Member Plugin. A Membership plugin for WordPress®.

Open Registration - set to NO, but still possible.

Postby zielakxar » January 19th, 2012, 10:07 pm

Hello - i have an issue with s2member open registration Option. After i've upgraded to s2member Pro turning that option OFF doesnt seem to change anything. It is probably not a plugin issue since i have like 2 plugins now - s2member and JW player. Any ideas what might causing this ?
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.
User avatar
zielakxar
Registered User
Registered User
 
Posts: 18
Joined: January 19, 2012

Re: Open Registration - set to NO, but still possible.

Postby Jason Caldwell » January 19th, 2012, 10:31 pm

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: Select all
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();
    } 
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Open Registration - set to NO, but still possible.

Postby zielakxar » January 20th, 2012, 8:43 am

Ok i've just tested it out - the reason of confusion is that you can register with a new account in closed registration when you're logged as wordpress administrator. Cleaning browser cashe made me logged out so i thought it was an issue.
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).
User avatar
zielakxar
Registered User
Registered User
 
Posts: 18
Joined: January 19, 2012

Re: Open Registration - set to NO, but still possible.

Postby Jason Caldwell » January 20th, 2012, 10:39 am

Thanks for the feedback on this. I appreciate it. Please let us know if we can be of further assistance.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron