diff options
author | travis%sedsystems.ca <> | 2005-03-08 02:11:36 +0000 |
---|---|---|
committer | travis%sedsystems.ca <> | 2005-03-08 02:11:36 +0000 |
commit | 0df76bb73976409345e1edc011844af8d99a7a47 (patch) | |
tree | 194b81488097d8b3b4e6230ddcf19194377f4b39 /Bugzilla/User.pm | |
parent | f03496f574d574aa7fa25bf3130cfa11c5735ded (diff) | |
download | bugs-0df76bb73976409345e1edc011844af8d99a7a47.tar bugs-0df76bb73976409345e1edc011844af8d99a7a47.tar.gz bugs-0df76bb73976409345e1edc011844af8d99a7a47.tar.bz2 bugs-0df76bb73976409345e1edc011844af8d99a7a47.tar.xz bugs-0df76bb73976409345e1edc011844af8d99a7a47.zip |
Bug 284262 : Bundle of small editusers.cgi post-checkin fixes
Patch by Marc Schumann <wurblzap@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r-- | Bugzilla/User.pm | 5 |
1 files changed, 5 insertions, 0 deletions
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. |