miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Search | Statistics | Manual |
Bugs miniBB Support Forums / Bugs /   

When $closeRegister is enabled, user should not be auto-logged

Author Danny2000
Registered
#1 | Posted: 10 Mar 2010 10:40 
I enabled "$closeRegister=1;" and it works..it sends the Username and Password into email..
but when someone register after pressing the registering button he can posts and goes into forum by his ID..
I want that he couldn't post till he get his password from his email... it's strange for me.. ;-)

Author Paul
Lead Developer
#2 | Posted: 10 Mar 2010 10:56 
Do you mean the user is auto-logged after registration?

Author Danny2000
Registered
#3 | Posted: 11 Mar 2010 05:44 
Paul:
Do you mean the user is auto-logged after registration?

Yes.. that's the problem...

Author Paul
Lead Developer
#4 | Posted: 11 Mar 2010 14:17 
Thanks! I'll check in a meanwhile. Could be a bug on our side.

Author Danny2000
Registered
#5 | Posted: 11 Mar 2010 16:39 
Paul:
Thanks! I'll check in a meanwhile. Could be a bug on our side.

thanks..

Author Paul
Lead Developer
#6 | Posted: 12 Mar 2010 03:12 
There is a very easy fix you may try... modify bb_func_regusr.php and locate the code which says /* Auto Sign-in */. Put the condition around the code, so it looks like this:

if(!isset($closeRegister) or $closeRegister==0){
deleteMyCookie();
setMyCookie($username, $passwd, $cookieexptime);
setCSRFCheckCookie();
}

Let me know if it will work... then I'll update it in the main version.

Author Danny2000
Registered
#7 | Posted: 12 Mar 2010 08:34 
Paul:
Let me know if it will work... then I'll update it in the main version.

Thank you so much.. it works now.. ;-)

.....

but for language.. it won't say the user goes to the email and get pass...
just it says.. thanks for your registeration (something like that)..
is that any extra thing that I have to add for language?

Author Paul
Lead Developer
#8 | Posted: 12 Mar 2010 09:35 | Edited by: Paul 
Danny2000:
is that any extra thing that I have to add for language?

Of course, read here:

Additional code to implement when you set $closeRegister=1

It's also fixed in the miniBB 2.5.

Author Danny2000
Registered
#9 | Posted: 12 Mar 2010 11:30 
Paul:
Of course, read here:

Thanks again.. ;-)

Bugs miniBB Support Forums / Bugs / When $closeRegister is enabled, user should not be auto-logged Top
This topic is closed. New replies are not allowed.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB