miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

adding more allowed symbols in passwords

 
Author Robert Riebisch
Guest
#1 | Posted: 20 Nov 2002 21:17 
Hello!

I'd like to allow more 'complicated' passwords, i.e. with '.' and '-' too.

How to?

Author Team
8-)
#2 | Posted: 21 Nov 2002 10:21 
Edit bb_func_checkusr.php

Change regular expression inside

($act=='reg' and !eregi("^[A-Za-z0-9_]{5,32}$", $userData[2]))

to something like

($act=='reg' and !eregi("^[A-Za-z0-9_.-]{5,32}$", $userData[2]))

Author Robert Riebisch
Guest
#3 | Posted: 21 Nov 2002 15:08 
Before I try that: Will it really work?

Because you use "A-Z" to allow "A, B, C, ...".

So what about the ".-"? Will it allow "., (I don't know what comes after.)"?

Author Team
8-)
#4 | Posted: 21 Nov 2002 15:12 
Robert Riebisch
JUST TRY IT :)

Deinitely, it will allow comma - , - but as about the quotes, it is not the best idea to use it in password.

Author Robert Riebisch
Guest
#5 | Posted: 21 Nov 2002 15:31 
For $act=='upd' too?

Btw: I didn't want to use the quotes. These were only for separation. ;-)

Author Team
8-)
#6 | Posted: 21 Nov 2002 15:39 
Yes, one function for all acts (it's miniBB, remember it :).

Author Robert Riebisch
Guest
#7 | Posted: 21 Nov 2002 15:47 
So not one function because you separate registration from updating a user. ;-)

Maybe there should a new variable like $userRegName for that in miniBB 1.5 setup_options.php.

But it's a really cool software. :-)

Hint: It's called "The Netherlands" with a leading "The".

Author Team
8-)
#8 | Posted: 21 Nov 2002 15:59 
We separate registration and update data, but the function for checking data is the same.

You are messing up password function and USERNAME function.

Maybe there should a new variable like $userRegName for that in miniBB 1.5 setup_options.php

IT'S ALREADY DONE, pay more attention :)

Hint: It's called "The Netherlands" with a leading "The".

What this is about?

Author Robert Riebisch
Guest
#9 | Posted: 21 Nov 2002 16:09 
We separate registration and update data, but the function for checking data is the same.

But I have to change the expression twice, right?

IT'S ALREADY DONE, pay more attention :)

You mean in miniBB 1.5? But I can't download the pre-build. So where should I know that from?

What this is about?

The country list in user_dataform.html.

Author Team
8-)
#10 | Posted: 21 Nov 2002 16:18 
But I have to change the expression twice, right?

ONLY ONCE. Where have you find that you can change it twice?
You are still messing up expressions for password and username - they are DIFFERENT.

You mean in miniBB 1.5?

Oh my God, in miniBB 1.4 of course, as much as in 1.3, 1.2 and 1.1, and even 1.0 - it's the option from the very beginning!

The country list in user_dataform.html
It's a copy of list from Microsoft HOTMAIL site :)

Author Robert Riebisch
Guest
#11 | Posted: 21 Nov 2002 16:24 
ONLY ONCE. Where have you find that you can change it twice?

I asked you "For $act=='upd' too?" and you said "Yes".

Oh my God, in miniBB 1.4 of course, as much as in 1.3, 1.2 and 1.1, and even 1.0 - it's the option from the very beginning!

You talk about the $userRegName variable, but I mean a password variable to define the allowed characters in a user's password. I didn't find one in 1.4.

It's a copy of list from Microsoft HOTMAIL site :)

Then forget it. *g*

Author Team
8-)
#12 | Posted: 21 Nov 2002 16:35 
I asked you "For $act=='upd' too?" and you said "Yes".

I thought - BOTH FOR ALL ACTS, the function is the same :)

You talk about the $userRegName variable, but I mean a password variable to define the allowed characters in a user's password. I didn't find one in 1.4.

Ah, got it. You've just said "Maybe there should a new variable like $userRegName for that in miniBB 1.5 setup_options.php" - and it already is something like this :) No, that option will not be included. Your problem is very rare, you are the first who is asking for this within a year. Most people are satisfied.

Personally, I think, there is no need to include something like these. People will include international symbols and they will be wandering later, why it is not working etc, etc... Why to have problems, if we are not having them? :)

Author Robert Riebisch
Guest
#13 | Posted: 21 Nov 2002 16:57 
Looks like most of our problems arise with the English language. ;-)

Author Team
8-)
#14 | Posted: 21 Nov 2002 17:04 
That is :)

But the most important part is we got the idea at the very end :)

Author Robert Riebisch
Guest
#15 | Posted: 21 Nov 2002 17:04 
Indeed. :-)

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 adding more allowed symbols in passwords
 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
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑