From 0df76bb73976409345e1edc011844af8d99a7a47 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Tue, 8 Mar 2005 02:11:36 +0000 Subject: Bug 284262 : Bundle of small editusers.cgi post-checkin fixes Patch by Marc Schumann r=mkanat a=justdave --- Bugzilla/User.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index dc11822bc..e67a78c83 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -149,6 +149,8 @@ sub id { $_[0]->{id}; } sub login { $_[0]->{login}; } sub email { $_[0]->{login} . Param('emailsuffix'); } sub name { $_[0]->{name}; } +sub disabledtext { $_[0]->{'disabledtext'}; } +sub is_disabled { $_[0]->disabledtext ? 1 : 0; } sub showmybugslink { $_[0]->{showmybugslink}; } sub set_flags { @@ -1277,6 +1279,9 @@ Params: $username (scalar, string) - The login name for the new user. generated. $disabledtext (scalar, string) - Optional. The disable text for the new user; if not given, it will be empty. + If given, the user will be disabled, + meaning the account will be + unavailable for login. Returns: The password for this user, in plain text, so it can be included in an e-mail sent to the user. -- cgit v1.2.3-24-g4f1b