From 8e808ffbf7b7b28a1cdfda3d188cc156a2e879d9 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 6 Sep 2006 02:18:26 +0000 Subject: Bug 351098: Make Bugzilla::Object able to update objects in the database, and make Bugzilla::Keyword use it Patch By Max Kanat-Alexander r=LpSolit, a=myk --- Bugzilla/User.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Bugzilla/User.pm') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 81bbb7fc1..4cb2c4469 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -121,13 +121,13 @@ sub new { # Validators ################################################################################ -sub _check_disable_mail { return $_[0] ? 1 : 0; } -sub _check_disabledtext { return trim($_[0]) || ''; } +sub _check_disable_mail { return $_[1] ? 1 : 0; } +sub _check_disabledtext { return trim($_[1]) || ''; } # This is public since createaccount.cgi needs to use it before issuing # a token for account creation. sub check_login_name_for_creation { - my ($name) = @_; + my ($self, $name) = @_; $name = trim($name); $name || ThrowUserError('user_login_required'); validate_email_syntax($name) @@ -138,7 +138,7 @@ sub check_login_name_for_creation { } sub _check_password { - my ($pass) = @_; + my ($self, $pass) = @_; # If the password is '*', do not encrypt it or validate it further--we # are creating a user who should not be able to log in using DB @@ -150,7 +150,7 @@ sub _check_password { return $cryptpassword; } -sub _check_realname { return trim($_[0]) || ''; } +sub _check_realname { return trim($_[1]) || ''; } ################################################################################ # Methods -- cgit v1.2.3-24-g4f1b