From 3891b63a1eb52076337885487f251a10580a4a85 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 27 Apr 2016 18:50:13 +0200 Subject: Bug 218917 - Allow the login name to be different from the email address Original patch by Gervase Markham r=gerv a=dkl --- Bugzilla/Template.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 618d80cfa..dea207f21 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -1170,7 +1170,7 @@ sub create { my $cache = Bugzilla->request_cache; return $cache->{login_not_email} //= - ($params->{emailsuffix} + (!$params->{use_email_as_login} || ($params->{user_verify_class} =~ /LDAP/ && $params->{LDAPmailattribute}) || ($params->{user_verify_class} =~ /RADIUS/ && $params->{RADIUS_email_suffix})) ? 1 : 0; -- cgit v1.2.3-24-g4f1b