holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12831: 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-26 07:08:28 UTC (rev 12830)
+++ trunk/bin/upgrading/en_LJ.dat	2012-10-26 07:16:23 UTC (rev 12831)
@@ -4950,6 +4950,8 @@
 
 ljcom.badpass.onlyalpha=Your password must contain at least one number or symbol.
 
+ljcom.badpass.signs=The password couldn't contain signs like @,_, (),etc
+
 ljcom.badpass.username=Your password cannot be based on your username.
 
 ljcom.badpass.username.reverse=Your password cannot be based on your username backwards.

Modified: trunk/cgi-bin/ljcom.pl
===================================================================
--- trunk/cgi-bin/ljcom.pl	2012-10-26 07:08:28 UTC (rev 12830)
+++ trunk/cgi-bin/ljcom.pl	2012-10-26 07:16:23 UTC (rev 12831)
@@ -803,6 +803,11 @@
         return $code_words->('ljcom.badpass.one.upper');
     }
 
+    # couldn't contain signs like @,_, (),etc
+    if ($password =~ /[^a-zA-Z0-9]/) {
+        return $code_words->('ljcom.badpass.signs');
+    }
+
     # 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