From ec610fd673feb6d6e18d121b5e67aa3f87e7f4ea Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Sat, 5 Mar 2005 08:18:47 +0000 Subject: Bug 277782: _throw_error should unlock tables when tables are locked, automatically Patch By Tomas Kopal r=travis, r=LpSolit, a=justdave --- globals.pl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'globals.pl') diff --git a/globals.pl b/globals.pl index e71493f6b..44bf7dc3e 100644 --- a/globals.pl +++ b/globals.pl @@ -613,11 +613,11 @@ sub ValidatePassword { my ($password, $matchpassword) = @_; if (length($password) < 3) { - ThrowUserError("password_too_short", undef, 'abort'); + ThrowUserError("password_too_short"); } elsif (length($password) > 16) { - ThrowUserError("password_too_long", undef, 'abort'); + ThrowUserError("password_too_long"); } elsif ((defined $matchpassword) && ($password ne $matchpassword)) { - ThrowUserError("passwords_dont_match", undef, 'abort'); + ThrowUserError("passwords_dont_match"); } } @@ -649,8 +649,7 @@ sub DBNameToIdAndCheck { return $result; } - ThrowUserError("invalid_username", - { name => $name }, "abort"); + ThrowUserError("invalid_username", { name => $name }); } sub get_classification_id { -- cgit v1.2.3-24-g4f1b