diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2016-04-27 18:50:13 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2016-04-27 18:50:13 +0200 |
commit | 3891b63a1eb52076337885487f251a10580a4a85 (patch) | |
tree | db1463894b756a6bb5114644feeec704ec886eb5 /Bugzilla/Auth.pm | |
parent | c44470a368465adfe329fcfc32492829a21878da (diff) | |
download | bugzilla-3891b63a1eb52076337885487f251a10580a4a85.tar.gz bugzilla-3891b63a1eb52076337885487f251a10580a4a85.tar.xz |
Bug 218917 - Allow the login name to be different from the email address
Original patch by Gervase Markham
r=gerv a=dkl
Diffstat (limited to 'Bugzilla/Auth.pm')
-rw-r--r-- | Bugzilla/Auth.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Bugzilla/Auth.pm b/Bugzilla/Auth.pm index 399f68d24..d693bf12d 100644 --- a/Bugzilla/Auth.pm +++ b/Bugzilla/Auth.pm @@ -136,6 +136,10 @@ sub extern_id_used { || $self->{_verifier}->extern_id_used; } +sub can_change_login { + return $_[0]->user_can_create_account; +} + sub can_change_email { return $_[0]->user_can_create_account; } @@ -412,6 +416,14 @@ Returns: C<true> if users are allowed to create new Bugzilla accounts, Description: Whether or not current login system uses extern_id. +=item C<can_change_login> + +Description: Whether or not the current login system allows users to + change their own login. +Params: None +Returns: C<true> if users can change their own login, + C<false> otherwise. + =item C<can_change_email> Description: Whether or not the current login system allows users to |