phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

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.1/Ascreaus followed by 3.2/Arsia.

Re: Registration Checks

Postby Dragosvr92 » Sun Jun 24, 2012 9:48 pm

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 username: TheKiller
Avatar on Memberlist 1.0.3
User avatar
Dragosvr92
Registered User
 
Posts: 358
Joined: Tue May 31, 2011 12:08 pm
Location: Romania

Re: Registration Checks

Postby Erik Frèrejean » Sun Jun 24, 2012 11:11 pm

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
Erik Frèrejean
Registered User
 
Posts: 207
Joined: Thu Oct 25, 2007 2:25 pm
Location: surfnet

Re: Registration Checks

Postby Dragosvr92 » Mon Jun 25, 2012 2:34 am

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 username: TheKiller
Avatar on Memberlist 1.0.3
User avatar
Dragosvr92
Registered User
 
Posts: 358
Joined: Tue May 31, 2011 12:08 pm
Location: Romania

Re: Registration Checks

Postby DavidIQ » Mon Jun 25, 2012 3:02 am

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
DavidIQ
MOD Team Leader
MOD Team Leader
 
Posts: 759
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth

Re: Registration Checks

Postby brunoais » Mon Jun 25, 2012 8:46 am

^ 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.
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm

Re: Registration Checks

Postby Senky » Mon Jun 25, 2012 11:34 am

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).
Senky
Registered User
 
Posts: 222
Joined: Thu Jul 16, 2009 4:41 pm

Previous

Return to [3.x] Discussion

Who is online

Users browsing this forum: Arty, Google [Bot] and 18 guests