summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2013-08-07 07:16:46 +0200
committerSimon Green <sgreen@redhat.com>2013-08-07 07:16:46 +0200
commit2e36c78ecde44d09bb685bde52e1ef0e3ba8afd2 (patch)
tree764766f9f1b7ce883b87047c56287484373f0a03 /Bugzilla
parent9ca3f8b5b6474b66b5e767fcb747ce1336c08339 (diff)
downloadbugzilla-2e36c78ecde44d09bb685bde52e1ef0e3ba8afd2.tar.gz
bugzilla-2e36c78ecde44d09bb685bde52e1ef0e3ba8afd2.tar.xz
Bug 897264 - letters_numbers_specialchars password restriction is incorrect
r=LpSolit, a=sgreen
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/User.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 943ec7247..c6cd23840 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -2116,7 +2116,7 @@ sub validate_password {
my $complexity_level = Bugzilla->params->{password_complexity};
if ($complexity_level eq 'letters_numbers_specialchars') {
ThrowUserError('password_not_complex')
- if ($password !~ /\w/ || $password !~ /\d/ || $password !~ /[[:punct:]]/);
+ if ($password !~ /[[:alpha:]]/ || $password !~ /\d/ || $password !~ /[[:punct:]]/);
} elsif ($complexity_level eq 'letters_numbers') {
ThrowUserError('password_not_complex')
if ($password !~ /[[:lower:]]/ || $password !~ /[[:upper:]]/ || $password !~ /\d/);