summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2013-08-09 05:57:38 +0200
committerSimon Green <sgreen@redhat.com>2013-08-09 05:57:38 +0200
commit2322f835d1f43ad8f709d784bfcf140710ae2bae (patch)
treec0552667c4aa02fb8062e53b6403c8261dbe0069 /Bugzilla/User.pm
parent3b04f80a84856823023400a28793d0c4b8ca561e (diff)
downloadbugzilla-2322f835d1f43ad8f709d784bfcf140710ae2bae.tar.gz
bugzilla-2322f835d1f43ad8f709d784bfcf140710ae2bae.tar.xz
Bug 897264 - letters_numbers_specialchars password restriction is incorrect
r=LpSolit, a=sgreen
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 878daea60..0bc49d9b1 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -2070,7 +2070,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/);