holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12851: LJSUP-14126: Changes connected with new ...

Committer: akanashin
LJSUP-14126: Changes connected with new requirements to the password
U   trunk/cgi-bin/ljcom.pl
Modified: trunk/cgi-bin/ljcom.pl
===================================================================
--- trunk/cgi-bin/ljcom.pl	2012-10-31 06:39:07 UTC (rev 12850)
+++ trunk/cgi-bin/ljcom.pl	2012-10-31 07:16:21 UTC (rev 12851)
@@ -802,20 +802,15 @@
     }
 
     # contain at least one lower case letter
-    if ($password =~ /^[A-Z0-9]+$/) {
+    if ($password =~ /^[^a-z]*$/) {
         return $code_words->('ljcom.badpass.one.lower');
     }
 
     # contain at least one upper case letter
-    if ($password =~ /^[a-z0-9]+$/) {
+    if ($password =~ /^[^A-Z]*$/) {
         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, 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