mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-28 01:54:07 +01:00
enable new password when only 'database' is available as authentication type
This commit is contained in:
parent
8e6699becb
commit
367907eab2
1 changed files with 12 additions and 12 deletions
|
|
@ -21,17 +21,17 @@
|
||||||
<% Tracks::Config.auth_schemes.each do |scheme| %>
|
<% Tracks::Config.auth_schemes.each do |scheme| %>
|
||||||
<%= radio_button_tag('user[auth_type]', scheme, current_user.auth_type == scheme) %><%=scheme%> <br/>
|
<%= radio_button_tag('user[auth_type]', scheme, current_user.auth_type == scheme) %><%=scheme%> <br/>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<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="database" style="display:<%= current_user.auth_type == 'database' ? 'block' : 'none' %>">
|
|
||||||
<%= render :partial => 'users/update_password' %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<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="database" style="display:<%= current_user.auth_type == 'database' ? 'block' : 'none' %>">
|
||||||
|
<%= render :partial => 'users/update_password' %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue