miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | 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 | Edited by: Team 
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 | Edited by: Robert Riebisch 
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 | Edited by: Team 
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 | Edited by: Team 
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 | Edited by: Robert Riebisch 
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 | Edited by: Team 
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 | Edited by: Robert Riebisch 
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 Top

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

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


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
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB