summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-08-12 20:54:59 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-08-12 20:54:59 +0200
commitfaf5ee649261c08d8e9b1c8de8cb3cb6311c8b4b (patch)
treefa7fb1a507437ff8086789ae835d6459b08ede99 /Bugzilla/User.pm
parentc3de43ee18240e8364fae0e9caeeda8cdff8f986 (diff)
parente651ee9c34ca40afdd4582902c1656ea577a4fc3 (diff)
downloadbugzilla-faf5ee649261c08d8e9b1c8de8cb3cb6311c8b4b.tar.gz
bugzilla-faf5ee649261c08d8e9b1c8de8cb3cb6311c8b4b.tar.xz
merged with bugzilla/4.2
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 f1803ac79..9261bd780 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -2115,7 +2115,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/);