<%= I18n.t('user.authentication_settings_disabled_due_to_external_authentication') %>
<% else %>
<% unless @auth_sources.empty? || OpenProject::Configuration.disable_password_login? %>
<%= f.select :auth_source_id, ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }) %>
<% end %>
<% if !OpenProject::Configuration.disable_password_login? %>
<%
pw_style =
if @user.change_password_allowed?
''
else
' style="display: none;"'
end
%>
>
<% assign_random_password_enabled = params[:user] &&
params[:user][:assign_random_password] %>
<% unless OpenProject::Configuration.disable_password_choice? %>
<%= f.password_field :password_confirmation,
:required => true,
:size => 25,
:disabled => assign_random_password_enabled %>
<% end %>
<%= f.check_box :force_password_change,
:disabled => assign_random_password_enabled %>
<% else %>