[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [%# 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 %] [% ELSE %] [% otheruser.name FILTER html %] [% END %] [%# XXX This condition (can_change_password) will cause a problem # if we ever have a login system that can create accounts through # createaccount.cgi but can't change passwords. #%] [% password_complexity = Param('password_complexity') %] [% IF editusers %] [% IF user.authorizer.can_change_password %] [% IF password_complexity == "mixed_letters" %] (Password must contain at least one UPPER and one lowercase letter.) [% ELSIF password_complexity == "letters_numbers" %] (Password must contain at least one UPPER and one lower case letter and a number.) [% ELSIF password_complexity == "letters_numbers_specialchars" %] (Password must contain at least one letter, a number and a special character.) [% END %] [% IF editform %]
(Enter new password to change.) [% END %] [% END %] (This affects [% terms.bug %]mail and whinemail, not password-reset or other non-[% terms.bug %]-related emails) [% INCLUDE global/textarea.html.tmpl name = 'disabledtext' id = 'disabledtext' minrows = 2 maxrows = 10 defaultrows = 10 cols = 60 defaultcontent = otheruser.disabledtext onchange = "userDisabledTextOnChange(this);" %]
(If non-empty, then it will not be possible to log in using this account, and this text should explain why.) [% END %] [% UNLESS editform %] (Email this user their account information. The password will not be included.) [% END %]