holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12830: LJSUP-14073: Sign Up Improvements for pa...

Committer: akanashin
LJSUP-14073: Sign Up Improvements for password & a bug with a number of FAQ
U   trunk/bin/upgrading/en_LJ.dat
U   trunk/cgi-bin/ljcom.pl
Modified: trunk/bin/upgrading/en_LJ.dat
===================================================================
--- trunk/bin/upgrading/en_LJ.dat	2012-10-25 11:26:13 UTC (rev 12829)
+++ trunk/bin/upgrading/en_LJ.dat	2012-10-26 07:08:28 UTC (rev 12830)
@@ -4944,6 +4944,10 @@
 
 ljcom.badpass.length=Your password must be at least six characters long.
 
+ljcom.badpass.one.lower=The password should contain at least one lower case letter
+
+ljcom.badpass.one.upper=The password should contain at least one upper case letter
+
 ljcom.badpass.onlyalpha=Your password must contain at least one number or symbol.
 
 ljcom.badpass.username=Your password cannot be based on your username.

Modified: trunk/cgi-bin/ljcom.pl
===================================================================
--- trunk/cgi-bin/ljcom.pl	2012-10-25 11:26:13 UTC (rev 12829)
+++ trunk/cgi-bin/ljcom.pl	2012-10-26 07:08:28 UTC (rev 12830)
@@ -793,6 +793,16 @@
         return $code_words->('ljcom.badpass.digits_only');
     }
 
+    # contain at least one lower case letter
+    if ($password =~ /^[A-Z0-9]+$/) {
+        return $code_words->('ljcom.badpass.one.lower');
+    }
+
+    # contain at least one upper case letter
+    if ($password =~ /^[a-z0-9]+$/) {
+        return $code_words->('ljcom.badpass.one.upper');
+    }
+
     # at least 6 chars
     if (length($password) < 6) {
         return $code_words->('ljcom.badpass.length');

Tags: akanashin, dat, holyandrew, ljcom, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments