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

Username registered like __________ (multiple underscores)

Author Prince
Registered
#1 | Posted: 20 Aug 2011 15:29 
Hello,

Some Users register like this: "__________" in My forum.

How to prevent registering like this?

Thanks

Author Paul
Lead Developer
#2 | Posted: 22 Aug 2011 11:31 
I think that's something we need to solve at the Bugs level of miniBB :)
I've never thought about it, but it seems it's just possible in the current version, and it's not solved easily. I'll think about it.

By now you could just ban these users :)

Author Prince
Registered
#3 | Posted: 23 Aug 2011 19:03 
Paul:
By now you could just ban these users :)

Yeah, I'm doing it. Hope next version will prevent such things :)

Thanks!

Author Prince
Registered
#4 | Posted: 15 Oct 2011 14:07 
Hello again!

I just needed to mention one thing more.. User will not be able register like this also: "_user" (Start with underscores), "56user" (Start with number).

Regards,

Author Paul
Lead Developer
#5 | Posted: 17 Oct 2011 12:22 
I think for verifying username upon registration, I will create a standalone re-writable function similar to parseMessage or parseTopic functions which are now plugged in miniBB. For example, verifyUsername - and there you'll be able to set any kind of conditions, which for any forum may be quite specific.

I think, forbidding digits in front of username is strange, what about nicknames like 50cent or 10000maniacs or 3dognight etc. - they all could make sense from the user end. Forbidding underscores in front still is a good idea, I'll take it into consideration, thanks :)

Author Prince
Registered
#6 | Posted: 17 Oct 2011 22:24 
Paul:
what about nicknames like 50cent or 10000maniacs or 3dognight

Yeah, didn't think about it.. :)

Paul:
I will create a standalone re-writable function similar to parseMessage or parseTopic functions which are now plugged in miniBB

That's Great!

Author winwalk
Registered
#7 | Posted: 20 Oct 2011 12:11 
That's like !!

Author Paul
Lead Developer
#8 | Posted: 28 Oct 2011 17:41 | Edited by: Paul 
Ok, it seems I'm finishing the core miniBB release, and got back to this question. I have updated the Registration script on our forums, so you may now safely test it here for mentioned bugs.

On our forums, usernames are set:

- to have a maximum length of 15 chars
- to contain only alphanumerical chars and '_'
- to not consist of the digits only

Regarding your suggestions, you should not be able to register usernames which:

- have repeatedly multiplied char, like in this topic's title (any kind of char, not just '_')
- start with not a Unicode char, incl. with '_', or any other specific char.

I have made the function universal, so it's possible to override in bb_plugins.php, specifying your very own set of rules and conditions applied to usernames. That's how it will work in the new release.

Prince
You have time to test it before I make it released :)
Thanks.

Author Prince
Registered
#9 | Posted: 28 Oct 2011 19:38 
Paul:
You have time to test it before I make it released :)

I didn't get the code, how would I test it? :)

Author Paul
Lead Developer
#10 | Posted: 28 Oct 2011 20:42 | Edited by: Paul 
Paul:
I have updated the Registration script on our forums, so you may now safely test it here for mentioned bugs.


Author Prince
Registered
#11 | Posted: 28 Oct 2011 21:19 
Paul
Thanks, I don't know why I lost in that :)

Author Prince
Registered
#12 | Posted: 28 Oct 2011 23:37 | Edited by: Prince 
Paul
I've tested it and it worked as I mentioned, Great!

It's ok like this test_test, but how about this: test34_ (underscore comes after user)?

I tried others and worked but tried this one also: test34_

Author Paul
Lead Developer
#13 | Posted: 29 Oct 2011 18:51 | Edited by: Paul 
You see now how important specification is. You have mentioned only underscores in the beginning of the string. The second part of work means additional work. Badly planned task means it will cost you double price. It's a normal practice, if you can't plan your tasks well.

But for miniBB, it's all much easier :) I just added extra line of checking and I believe it should work now. Please test!

Author Prince
Registered
#14 | Posted: 29 Oct 2011 19:29 
Paul:
You see now how important specification is

Yeah... I didn't think about it until I tested that :)

Paul:
Please test!

Yeah, it works great now! :)

Bugs miniBB Support Forums / Bugs / Username registered like __________ (multiple underscores) Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB