Limits Up
Welcome, Guest. Please login or register.
October 06, 2008, 07:25:48 PM

Pages: [1]
Print
Author Topic: Forcing more complex passwords?  (Read 177 times)
brusselsshrek
Full Member
***
Posts: 246



« on: August 02, 2008, 11:46:16 AM »

I get a lot of users using really simple passwords like 123456.  Does anyone use a regular expression to force something more complex (e.g. password MUST contain a lower case letter, an upper case letter, a digit, a weird char)?

 Huh
Logged

http://romeobox.com - RomeoBox dating site
Easton
Sr. Member
****
Posts: 470


« Reply #1 on: August 02, 2008, 12:04:26 PM »

Not really, anything for members to remember is appropriate for me..... later on i don't want to be getting emails from members that they can't access the site, so i leave members to choose password which easy for them to remember..

Easton
Logged
brusselsshrek
Full Member
***
Posts: 246



« Reply #2 on: August 05, 2008, 11:48:49 AM »

OK, I've done a lot of research, and tests, and I have good news and bad news about making passwords more secure.

First, the GOOD news: the following Regexp can be put in the "password" field and forces the password to be between 4 and 10 characters long, and must have at least 1 uppercase letter (A-Z), at least 1 lowercase letter (a-z) and at least 1 digit (0-9):

/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{4,8}$/i

Unfortunately, the very BAD news, is that the way SkaDate is coded at the moment means that this Regexp will apply at ALL times users enter a password - e.g. just when signing in normally - and not just when a user CHANGES their password, meaning that all EXISTING passwords which do not conform (=99% of them) will suddenly stop working!!!!  As it currently stands, the password Regexp is actually almost UNUSABLE, because if you change the Regexp, you stop all existing users logging in!!

A suggestion Skadate: make the minor change to the code so that the Regexp is checked ONLY when a user CHANGES their password!  That way, old passwords can stay as they are, but all NEW passwords are forced to the new Regexp.

How about it SkaDate? 
Logged

http://romeobox.com - RomeoBox dating site
Adden
Administrator
Sr. Member
*****
Posts: 303



« Reply #3 on: August 13, 2008, 12:31:00 AM »

Agreed.
Regexp checking for password will be removed from Sign in form. This will allow to login members with old pass.
Move this fix to Skadate7
« Last Edit: August 13, 2008, 11:35:15 PM by Adden » Logged
Pages: [1]
Print
Jump to:  

You are here: Skalfa » Support » Discussion Boards