miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Bugs miniBB Support Forums / Bugs /  
 

Username registered like __________ (multiple underscores)

 
Author Prince
Partaker
#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
Partaker
#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
Partaker
#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
Partaker
#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
Partaker
#7 | Posted: 20 Oct 2011 12:11 
That's like !!

Author Paul
Lead Developer 
#8 | Posted: 28 Oct 2011 17:41 
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
Partaker
#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 
Paul:
I have updated the Registration script on our forums, so you may now safely test it here for mentioned bugs.

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

Author Prince
Partaker
#12 | Posted: 28 Oct 2011 23:37 
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 
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
Partaker
#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)
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑