summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Auth.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Auth.pm')
-rw-r--r--Bugzilla/Auth.pm12
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