Skip to content

Commit

Permalink
enable new password when only 'database' is available as authenticati…
Browse files Browse the repository at this point in the history
…on type
  • Loading branch information
lrbalt committed Aug 18, 2011
1 parent 8e6699b commit 367907e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/views/preferences/_authentication.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
<% Tracks::Config.auth_schemes.each do |scheme| %>
<%= radio_button_tag('user[auth_type]', scheme, current_user.auth_type == scheme) %><%=scheme%> <br/>
<% end %>
<% end %>

<br/>
<br/>

<div id="open_id" style="display:<%= current_user.auth_type == 'open_id' ? 'block' : 'none' %>">
<label for="openid_url"><%= t('users.identity_url') %>:</label><br/>
<input type="text" name="user[open_id_url]" value="<%= current_user.open_id_url %>" class="open_id" />
</div>
<div id="open_id" style="display:<%= current_user.auth_type == 'open_id' ? 'block' : 'none' %>">
<label for="openid_url"><%= t('users.identity_url') %>:</label><br/>
<input type="text" name="user[open_id_url]" value="<%= current_user.open_id_url %>" class="open_id" />
</div>

<div id="database" style="display:<%= current_user.auth_type == 'database' ? 'block' : 'none' %>">
<%= render :partial => 'users/update_password' %>
</div>
<div id="database" style="display:<%= current_user.auth_type == 'database' ? 'block' : 'none' %>">
<%= render :partial => 'users/update_password' %>
</div>

<% end %>

0 comments on commit 367907e

Please sign in to comment.