[%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing # rights and limitations under the License. # # The Original Code is the Bugzilla Bug Tracking System. # # Contributor(s): Marc Schumann #%] [%# INTERFACE: # # editform: is this an edit form? (It's a create form otherwise) # editusers: is viewing user member of editusers? # otheruser: Bugzilla::User object of user to edit #%] [% IF editusers %] [% IF editform %] [% IF !otheruser.in_group('bz_sudo_protect') %]
Impersonate this user [% END %] [% END %] [% ELSE %] [% otheruser.login FILTER html %] [% END %] [% IF default_authorizer.extern_id_used %] [% IF editusers %] [% ELSE %] [% otheruser.extern_id FILTER html %] [% END %] [% END %] [% IF editusers || disableusers %] [% ELSE %] [% otheruser.name FILTER html %] [% END %] [% IF editusers %] [%# if a user's cryptpassword is '*' it means they use an auth provider # such as github, or you can't log in with that account. in either case # forcing a password reset isn't valid %] [% IF otheruser.cryptpassword != '*' && editform %]
Password change reason (will be displayed to the user):
[% END %] [% END %] [% IF editusers || disableusers %] [% INCLUDE global/textarea.html.tmpl name = 'disabledtext' id = 'disabledtext' minrows = 2 maxrows = 10 defaultrows = 10 cols = 60 defaultcontent = otheruser.disabledtext %]
(If non-empty, then the account will be disabled, and this text should explain why.) [% END %] [% IF editform && editusers %] [% IF user.in_group('bz_can_disable_mfa') %] [% IF otheruser.mfa %] [% ELSE %] Disabled [% END %] [% ELSE %] [% otheruser.mfa ? "Enabled - " _ otheruser.mfa : "Disabled" FILTER html %] [% END %] [% END %] [% Hook.process('end') %]