Registration Checks

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.2.x. If you need support for phpBB 3.2.x please visit the 3.2.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
User avatar
Dragosvr92
Registered User
Posts: 624
Joined: Tue May 31, 2011 12:08 pm
Location: Romania
Contact:

Re: Registration Checks

Post by Dragosvr92 »

brunoais wrote: Why AJAX for the password?
I was just saying that, as there will be a lot of AJAX Functions. You may use it to include this also....
If it can be done in a other way, thats ok. Just proposing to add this features, not what to use to include them.....
brunoais wrote: -1 for AJAX check if the username follows the options in the ACP. Javascript without the AJAX technology should be used instead. like HTML5's input@pattern and input@required.
I think you are wrong. The error message already is showing already. It will only have to be a part of the username check, and show in the right side of the form..
Current message is "The username contains forbidden characters." btw.
brunoais wrote: There's no 2nd box. There's only 1 box for the e-mail in 3.1.
My bad.
imkingdavid wrote: It would just be plain javascript for the password, just to make sure it is entered correctly twice and is the correct length. Unless, that is, we implement some password strength requirements (upper/lower-case letter, number, special character, etc.); in that case it would be easier with AJAX.
Would be a nice idea to have a password strength option.
Previous user: TheKiller
Avatar on Memberlist 1.0.3

User avatar
Erik Frèrejean
Registered User
Posts: 207
Joined: Thu Oct 25, 2007 2:25 pm
Location: surfnet
Contact:

Re: Registration Checks

Post by Erik Frèrejean »

TheKiller wrote:
imkingdavid wrote: It would just be plain javascript for the password, just to make sure it is entered correctly twice and is the correct length. Unless, that is, we implement some password strength requirements (upper/lower-case letter, number, special character, etc.); in that case it would be easier with AJAX.
Would be a nice idea to have a password strength option.
Define "password strength", these tools usually just check whether a password contains upper/lower case and a digit. As xkcd explains that isn't the definition of a strong password.
Available on .com
Support Toolkit developer

User avatar
Dragosvr92
Registered User
Posts: 624
Joined: Tue May 31, 2011 12:08 pm
Location: Romania
Contact:

Re: Registration Checks

Post by Dragosvr92 »

Well, the password is "stronger" if it has symbols, or upper/lower-case letters... numbers ... or if its lenght is pretty large, like 10 characters or whatever.....I think that defines a "strong" password.
Previous user: TheKiller
Avatar on Memberlist 1.0.3

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1845
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Registration Checks

Post by DavidIQ »

RegEx is available in JavaScript and is close enough to PHP's regular expression usage to "easily" check password strength client side.
Image

User avatar
brunoais
Registered User
Posts: 964
Joined: Fri Dec 18, 2009 3:55 pm

Re: Registration Checks

Post by brunoais »

^ this.

The only thing JS really does not support is look-behind. For the rest, I don't remember anything that js does not support that php supports.
Senky wrote: No, simple condition going from the weakest regex to the strongest one, and first one that matches will stop it. Simple enough, IMO.
(viewtopic.php?p=241057#p241057)
I didn't understand.

Senky
Extension Customisations
Extension Customisations
Posts: 315
Joined: Thu Jul 16, 2009 4:41 pm

Re: Registration Checks

Post by Senky »

Nothing important to be discussed. It is just programmer's thinking - just to show all it is very easy to implement "password strength" (at least that one based on length and types of characters used).

Post Reply